Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sprjr
· 11y ago · 0 comments
* 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/
Comments
[–]
Touche
11y ago
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.