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
however uglify-js does not support ES6, which resulted in a fork called uglify-es that was developed in the uglify-js repository, but under the harmony branch
uglifyjs-webpack-plugin v1.x switched to uglify-es for ES6 support
which led to a fork called terser that has incorporated all of the unmerged PRs and will be where all new development occurs
terser-webpack-plugin was created, which is the terser equivalent of uglifyjs-webpack-plugin
uglifyjs-webpack-plugin v2.x has switched back to uglify-js, so any project that needs to support ES6 now needs to switch to terser-webpack-plugin instead.
Fixes #7923.
What kind of change does this PR introduce?
Bugfix I guess? (since terser includes many correctness fixes)
Did you add tests for your changes?
There are existing tests which have been updated for the plugin name change.
)
* docs(config): Replace UglifyJSPlugin references with TerserPlugin
Since the default `options.minimizer` is now `terser-webpack-plugin`:
webpack/webpack#8036
I've also:
* updated the custom `minimizer` example to include all of the default
options, to reduce the chance people forget to enable them.
* removed the `optimize/UglifyJsPlugin` reference, since it's no
longer included in the webpack repository.
* removed the "Here are a few more popular ones" mention, since it's
not accurate (they aren't more popular).
* removed manual plugin configuration from `configuration-languages.md`
since the defaults for `minimizer` make it unnecessary.
Fixes#2520.
* Address review comment
A pull request by @edmorley was merged and maintainers requested a documentation change.
See pull request: webpack/webpack#8036
Some history:
uglify-js
does not support ES6, which resulted in a fork called uglify-es that was developed in theuglify-js
repository, but under the harmony branchuglifyjs-webpack-plugin
v1.x switched touglify-es
for ES6 supportuglify-es
stopped being maintainedterser
equivalent ofuglifyjs-webpack-plugin
uglifyjs-webpack-plugin
v2.x has switched back to uglify-js, so any project that needs to support ES6 now needs to switch toterser-webpack-plugin
instead.Fixes #7923.
What kind of change does this PR introduce?
Bugfix I guess? (since terser includes many correctness fixes)
Did you add tests for your changes?
There are existing tests which have been updated for the plugin name change.
Does this PR introduce a breaking change?
Yes. The new plugin:
warningsFilter
function.What needs to be documented once your changes are merged?
The text was updated successfully, but these errors were encountered: