You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[`swc`](https://github.com/swc-project/swc) is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.
534
556
535
-
> ⚠ the `extractComments` option is not supported
557
+
> ⚠ the `extractComments` option is not supported and all comments will be removed by default, it will be fixed in future
[`esbuild`](https://github.com/evanw/esbuild) is an extremely fast JavaScript bundler and minifier.
556
580
557
-
UglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.
581
+
> ⚠ the `extractComments` option is not supported and all legal comments (i.e. copyright, licenses and etc) will be preserved
558
582
559
583
**webpack.config.js**
560
584
@@ -564,9 +588,16 @@ module.exports = {
564
588
minimize:true,
565
589
minimizer: [
566
590
newTerserPlugin({
567
-
minify:TerserPlugin.uglifyJsMinify,
568
-
// `terserOptions` options will be passed to `uglify-js`
569
-
// Link to options - https://github.com/mishoo/UglifyJS#minify-options
591
+
minify:TerserPlugin.esbuildMinify,
592
+
// `terserOptions` options will be passed to `esbuild`
593
+
// Link to options - https://esbuild.github.io/api/#minify
594
+
// 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:
0 commit comments