3 ms·
* 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://b
by sprjr 11y ago
* 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/ https://babeljs.io/docs/usage/require/
- Touche 11y agoI 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.