yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 662 forks source link

RFE : Rewrite with JDK9 Nashorn JavaScript engine (ES6) #290

Open OlivierJaquemet opened 7 years ago

OlivierJaquemet commented 7 years ago

The next major release of Java, JDK9, will provide an updated version of the Nashorn JavaScript engine. This version will include a JavaScript parsing API, and will support ES6.

http://www.javamagazine.mozaicreader.com/JulyAug2017/facebook#&pageSet=34&page=0&contentItem=0

A nice improvement (probably complex rewrite...) would be to use this engine to support new ES6 features.

Chris2011 commented 7 years ago

That will fix a lot of problems, when you try to minify Es6 code.

OlivierJaquemet commented 6 years ago

Update : with JEP 335, Nashorn is considered for deprecation and future removal : http://openjdk.java.net/jeps/335