diff --git a/packages/next/build/webpack-config.js b/packages/next/build/webpack-config.js index e664b0f5..0ef6388a 100644 --- a/packages/next/build/webpack-config.js +++ b/packages/next/build/webpack-config.js @@ -86,7 +86,15 @@ function optimizationConfig ({ dev, isServer, totalPages, target }) { return { splitChunks: false, minimizer: [ - new TerserPlugin(terserPluginConfig) + new TerserPlugin({...terserPluginConfig, + terserOptions: { + compress: false, + mangle: false, + module: false, + keep_classnames: true, + keep_fnames: true + } + }) ] } }