F
F
Finom2015-08-31 11:50:59
JavaScript
Finom, 2015-08-31 11:50:59

What alternative does uglify have with EcmaScript 2015/7 support?

How can scripts that contain new syntax (let, for..of ...) be minified? I know it's possible to replace these syntaxes with ES5 compatible ones using Babel, but "pure" ES is definitely faster and easier to catch errors (Babel adds double try..catch above for..of loops).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-08-31
@IonDen

Try using your let or there class in IE9 and you'll be surprised how nothing will work at all. At the moment, it hardly makes sense to use ES6 live, only through Babel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question