Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

* npm init * npm i -S babel * vi file.js * first line: require('babel/register'); * Yay, now you can finally just fucking code now.

Learn your tools: https://babeljs.io/docs/usage/require/



I have to bundle it to run it in the browser (or use babel in the client which has an entirely different set of problems). I know these tools very well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: