meteor / babel

Babel wrapper package for use with Meteor
Other
46 stars 20 forks source link

Not running on client? #6

Closed derwaldgeist closed 8 years ago

derwaldgeist commented 9 years ago

I used to use grigio:babel which is now marked as "deprecated" because of the new babel-compiler package. But I have troubles using this, as babel-compiler does not support client code. Why is this so? I should be no problem to transpile it for the client during the build process, as it is possible with grunt / gulp for quite a long time. Supporting babel on the server only is a huge drawback.

benjamn commented 8 years ago

Compilation happens on the server, whether you're compiler server code or client code. Meteor supports ECMAScript 2015 on both client and server. Just run meteor add ecmascript!