O'Reilly logo
  • JON CHUN thinks this is interesting:

browserify -t babelify main.js -o main.dist.js

From

Cover of React Components

Note

<https://github.com/babel/babelify#options>

$ npm install –save-dev babel-preset-es2015 babel-preset-react

$ browserify -t [ babelify –presets [ es2015 react ] ]