Initialize babel in your project, tailored to your needs.
npm install -g yonpm install -g generator-babel-init
Then initialize babel in your project using:
You'll be asked what ECMAScript level you want to transpile (es2015, stage-#), what target you are transpiling to (es5, node4, node5, rollup), what additional syntaxes you'll be using (just react for now), if and how you want to polyfill the environment (none, babel-polyfill, or transform-runtime), and how you intend to use babel.
generator-babel-init will then setup your
.babelrc and install the necessary npm packages.
MIT © Daniel Friesen