Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

uglify-es is no longer maintained #349

Closed
radum opened this issue Aug 31, 2018 · 5 comments
Closed

uglify-es is no longer maintained #349

radum opened this issue Aug 31, 2018 · 5 comments

Comments

@radum
Copy link

radum commented Aug 31, 2018

According to the maintainer uglify-es is no longer maintained and uglify-js does not support ES6+

If we use Babel with preset-env and we target latest browsers, this will not work as expected, is it?

This is also used when webpack is in production mode, so might be a bit confusing in terms of your output. Considering that the main master branch is moving fwd with bug fixes and so on. Harmony is way behind of all this.

Is there any existing plan to move to something else?

@alexander-akait
Copy link
Member

alexander-akait commented Aug 31, 2018

Use https://github.com/webpack-contrib/terser-webpack-plugin, next major will be switched back to uglifyjs. webpack@5 will be use terser or babel-minify

@alexander-akait
Copy link
Member

alexander-akait commented Aug 31, 2018

Also in near future will be release babel-minify-webpack-plugin (babel@7)

@thw0rted
Copy link

Any updated advice for users at the end of 2018? I'm trying to switch to ES6 output and came across this issue while researching why it breaks my build. As far as I can tell I have latest (stable) webpack and uglifyjs-webpack-plugin. It looks like uglify-es and its corresponding webpack plugin are abandoned, and babel-minify-webpack-plugin has few downloads and no updates since last March.

Should I switch to one of these abandoned projects? Should I start using beta webpack, assuming there are decent builds of v5 available? Did the roadmap change again?

@alexander-akait
Copy link
Member

@thw0rted webpack already use terser and next version will be use terser too, he support es5 and es6and other new syntax https://github.com/webpack-contrib/terser-webpack-plugin

@thw0rted
Copy link

OK, I was manually specifying an instance of uglifyjs-webpack-plugin in my config so I have switched that out for an instance of terser-webpack-plugin, which seems to Just Work. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants