Replace let with var

May 11, 2015 at 1:45 PM
Hi,

I saw the option in the minifier to understand the ECMA 6 statements let and const.
Even though these statements are really nice for development (and using tools like jsHint), they will not be supported on all relevant devices for the next couple of years: How long will it take, until all versions of IE 11 or some smartphone-browser have vanished from the net.

Is there an option to replace these statements with a var-statement during minification?

This way, we can use them for development now and remove them from the productive javascript.

Thank you very much.