mendel
mendel copied to clipboard
New dependency name: uglify-es => terser #1
There has been development on a new fork of uglify-es, which is now called terser and has its own package!
"terser": "^3.7.3"
Please upgrade to our new version.
Thanks for opening the issue!
Mendel uses plugins, like glup, webpack and others. I'll think about adding a plugin for that. But it would be even better if we could get this as contribution. For now, I'll just post a quick initial research on Terser.
For context, we use this for mendel-transform-uglify
:
- https://www.npmjs.com/package/uglify-es
- https://github.com/mishoo/UglifyJS2/tree/harmony
-
We use uglify only here: https://github.com/yahoo/mendel/blob/master/packages/mendel-transform-uglify/ -- The other packages using uglify are deprecated, we will move all to plugins eventually. Just keeping retro compatibility at the moment.
I found terser here:
- https://www.npmjs.com/package/terser
- https://github.com/fabiosantoscode/terser
-
It has no homepage that I could find, and would be nice to have a feature comparison with uglify-es, as I can't find a reason to switch right away. It still links to http://lisperator.net/uglifyjs/ which has no terser compassion table.
@fabiosantoscode do you mind going in details of terser improvements over uglify-es?
The only difference between terser and uglify-es is active development. We're not changing anything besides that. I'll add the homepage field to the package.json as you suggest. But I haven't the time to contribute the changes, sadly.
Edit: interesting, the "homepage" fiels is there and is a valid link, but npm isn't resolving it