mendel icon indicating copy to clipboard operation
mendel copied to clipboard

New dependency name: uglify-es => terser #1

Open fabiosantoscode opened this issue 6 years ago • 2 comments

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.

fabiosantoscode avatar May 17 '18 13:05 fabiosantoscode

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
  • screen shot 2018-05-17 at 4 55 29 pm

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
  • screen shot 2018-05-17 at 5 06 12 pm

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?

irae avatar May 17 '18 20:05 irae

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

fabiosantoscode avatar May 18 '18 09:05 fabiosantoscode