ES6 support in Meteor (esp. for-of-loop)


#1

Hello all,

when I just wanted to build/deploy my Meteor app the build process failed during the minification process, logging that expected “;” but instead found “of”. When replacing the for-of-loops (ES6), by standard for-loops (<=ES5), everything works fine. I am running the latest version of Meteor (1.2.0.2).

Is there any way to use for-of-loops (and potentially other ES6 features) and still be able to build the app?

Many thanks in advance!

Cheers,
Thomas


#2

Problem solved, the ecmascript package was missing.
Thanks! :slight_smile: