generator-babel creates .babelrc file with support for react plugins and installs the needed packages.
npm install --global generator-babelrc
yo babelrc
this.composeWith(require.resolve('generator-babelrc'), {
/* options */
});
- destination (String, default '') destination path for .babelrc file.
- react (Boolean, default false) include react support.