Looking for an ES6 compatible compressor/mangler for Node, any ideas?


Looking for an ES6 compatible compressor/mangler for Node, any ideas?

I'm looking for an option to compress/mangle my node code before packaging. I've used UglifyJS2 up until now, but as I add ES6 features to my codebase, it fails pretty spectacularly. I'm not terribly interested in transpiling down to ES5.

I've been banging on an acorn->Uglify harmony branch, and had some failures using esprima. Are there any options I'm missing out there, or any packages that already get this right?

I'm frankly a little surprised that neither of those packages have shipped proper support for the current standard, but open source being what it is, it's not like I have a right to complain.

Sorry if my post is shit, my brain is fairly jelly at this point.

Submitted January 20, 2016 at 11:32PM by Wickity
via reddit http://ift.tt/1lvKBGj