Terser plugin Minimizer doesn't return result#17877
-
Bug reportWhat is the current behavior? Error when compiling for production using terser options ERRORin ./javascripts/webpack/main.js from Terser pluginMinimizer doesn't return result {optimization:{minimize:true,minimizer:[newTerserPlugin({minify:TerserPlugin.uglifyJsMinify,extractComments:false,terserOptions:{keep_classnames:true,keep_fnames:true,},}),],},} If the current behavior is a bug, please provide the steps to reproduce. What is the expected behavior? It should compile for production without errors. Other relevant information: ➜ ./node_modules/.bin/webpack --version System: |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 7 replies
-
Please provide reproducible test repo, maybe you have broken JS syntax... |
BetaWas this translation helpful?Give feedback.
All reactions
-
I faced this issue and came across this thread. I've created a testrepo where this is still producible. I have tried the steps from the webpackdocumentation Happy to help in any capacity. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@varit05 I see, the problem is ``deadCode |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
@varit05 There is a fix -webpack/terser-webpack-plugin#641, release will be soon |
BetaWas this translation helpful?Give feedback.
All reactions
-
@alexander-akait Thanks for the quick resolution, I really appreciate it. |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I’m happy to confirm that the plugin now provides a clearer error with the Thank you@alexander-akait for your prompt response. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
This discussion was converted from issue #17828 on December 19, 2023 15:13.