From c6027e6c6b0f681ea926681088ad312f1e7aa7bc Mon Sep 17 00:00:00 2001 From: ctw Date: Fri, 25 Feb 2022 15:30:08 +0800 Subject: [PATCH] modify minimizer option of TerserPlugin Signed-off-by: ctw Change-Id: Ic870dc3416c90351b8d81a4a1bf9200144a9a8f8 --- compiler/webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compiler/webpack.config.js b/compiler/webpack.config.js index 56cdbd9..ad636f6 100644 --- a/compiler/webpack.config.js +++ b/compiler/webpack.config.js @@ -146,7 +146,13 @@ function setReleaseConfig(config) { emitOnErrors: true, usedExports: false, minimize: true, - minimizer: [new TerserPlugin()] + minimizer: [new TerserPlugin({ + terserOptions: { + compress: { + join_vars: false + } + } + })] }; config.output.sourceMapFilename = '_releaseMap/[name].js.map'; }