Babel (fka 6to5) javascript ES6-to-ES5 transpiler Meteor package


#1

There are some open issues but it works


#2

Thanks @grigio! It’s great to see Meteor support for Babel documented in the upstream docs! Looking forward to trying it myself at some point. @benjamn have you seen this?


#3

@glasser I’m glad you liked it, currently a workaround is needed https://github.com/grigio/meteor-babel/issues/5


#4

This is great @grigio, I’ve been using ES6 on some standalone apps recently with http://jspm.io/. Looking forward to building my Meteor apps in the same way!


#5

This is great!

I hope to submit some pull requests for those outstanding issues soon. In particular, I think it makes sense simply to blacklist the "use strict" transform.

Longer-term, it may make sense to maintain a version of Babel that relies more heavily on a runtime library, so that you don’t have to generate as much boilerplate for things like setting up class inheritance.


#6

Another idea: it would be great to cache transformed files on disk, to save startup time for incremental rebuilds.