From a9c3f43e9bb7a984209c675409e5bc5f25fade30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Sat, 13 Jan 2018 18:49:59 +0100 Subject: [PATCH] fix(json): json parameter now enables modules (#242) fixes https://github.com/webpack/webpack/issues/6307 --- bin/webpack.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/webpack.js b/bin/webpack.js index 76adef3c060..6894fa989de 100755 --- a/bin/webpack.js +++ b/bin/webpack.js @@ -281,7 +281,10 @@ }); ifArg("json", function(bool) { - if (bool) outputOptions.json = bool; + if (bool) { + outputOptions.json = bool; + outputOptions.modules = bool; + } }); if (typeof outputOptions.colors === "undefined")