diff --git a/src/webpack.config.js b/src/webpack.config.js index 3e9b0ccf567..828460d75ee 100644 --- a/src/webpack.config.js +++ b/src/webpack.config.js @@ -100,9 +100,11 @@ module.exports = { loader: 'file-loader', }, ], + strictExportPresence: isProduction, }, plugins, + optimization: { minimizer: isProduction ? [terserPlugin] : [], },