What's the difference between uglify-js and uglify-es?

你。 提交于 2020-01-14 13:33:11

问题


The descriptions of uglify-js and uglify-es are the same except that uglify-es tacks "for ES6+" on the end. Based on that one would think uglify-es is the best option for ES6 code. On the other hand, uglify-es is older - version 3.3.9 published 5 months ago, versus uglify-js at version 3.4.2 published 2 days ago. Anyone want to clear up my confusion?


回答1:


uglify-js only supports ES5 code as input.

uglify-es also supports ES6, but is buggy and has been abandoned.

terser is a maintained replacement for it that can also handle ES6+.



来源:https://stackoverflow.com/questions/51069142/whats-the-difference-between-uglify-js-and-uglify-es

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!