nusmodifications / nusmods

🏫 Official course planning platform for National University of Singapore.
https://nusmods.com
MIT License
585 stars 318 forks source link

Babel? #281

Closed ngzhian closed 7 years ago

ngzhian commented 8 years ago

So we can write ES2015 code :)

Out of curiousity, found out that facebook/react uses browserify, grunt, and gulp. They do this thing where they babel-fy all their source code, then use browserify to bundle them up, we can probably do something like this? But I'm not sure how well that will work with watchify.

yangshun commented 8 years ago

@ngzhian Sure, why not, but if it's too much effort to add then probably not worth it

ngzhian commented 8 years ago

Note for future: how facebook does it is run each source file through babel (https://github.com/facebook/react/blob/master/gulpfile.js#L81), then run the result through browserify.

https://www.npmjs.com/package/gulp-babel

ngzhian commented 7 years ago

deprecated in favour of webpack, and also v3 \o/