From 907045b268c977bc97f2f6d54980ae4c65efa19c Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 22 Mar 2018 14:10:38 -0500 Subject: [PATCH] enable scope hoisting only in produciton (it interferes with HMR) --- config/webpack.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index f5fb7de6176..213b05e653c 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -222,9 +222,6 @@ const config = { names: ['main', 'common', 'webpack_runtime'], }), - // enable scope hoisting - new webpack.optimize.ModuleConcatenationPlugin(), - // copy pre-compiled vendor libraries verbatim new CopyWebpackPlugin([ { @@ -281,6 +278,7 @@ if (IS_PRODUCTION) { minimize: true, debug: false, }), + new webpack.optimize.ModuleConcatenationPlugin(), new webpack.optimize.UglifyJsPlugin({ sourceMap: true, }),