diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/webpack.config.js b/webpack.config.js index a2da5786..cd77fb53 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -55,16 +55,9 @@ module.exports = (env, argv) => { minimize: !dev, minimizer: [ new TerserPlugin({ - minify: TerserPlugin.esbuildMinify, - // `terserOptions` options will be passed to `esbuild` - // Link to options - https://esbuild.github.io/api/#minify - // Note: the `minify` options is true by default (and override other `minify*` options), so if you want to disable the `minifyIdentifiers` option (or other `minify*` options) please use: - // terserOptions: { - // minify: false, - // minifyWhitespace: true, - // minifyIdentifiers: false, - // minifySyntax: true, - // }, + minify: TerserPlugin.swcMinify, + // `terserOptions` options will be passed to `swc` (`@swc/core`) + // Link to options - https://swc.rs/docs/config-js-minify terserOptions: {}, }), ] |