So I am just wondering how I have been able to use ECMAScript 2015 functionality within my app? Does Meteor magically compile my code within my client folder into vanilla JS?
Just a general question as I have always wondered.
Thanks, Nick
So I am just wondering how I have been able to use ECMAScript 2015 functionality within my app? Does Meteor magically compile my code within my client folder into vanilla JS?
Just a general question as I have always wondered.
Thanks, Nick
There is an ecmascript package inside your packages file that allows you to use those features.
The ecmascript
package leverages Babel to compile your ES2015 based javascript syntax, down into ES5 compliant syntax. If you’re interested, check out this video from one of the past Meteor dev shops, that explains how the ecmascript
package works, in more detail.