0.1.4 • Published 8 years ago
create-react-scripts-babelrc v0.1.4
create-react-scripts-babelrc
Mark babelrc option to true in babel-loader. This is very useful if you want to add some external babel feature into webpack build.
Example Usage:
Modify crs.config
Modify crs.config as below.
const { compose } = require('create-react-scripts');
module.exports = compose(
...
require('create-react-scripts-babelrc')(),
);Create .babelrc
Create .babelrc under your application folder
For example, I want to enable stage-0 and decorator supports.
{
"presets": ["react-app", "stage-0"],
"plugins": ["transform-decorators-legacy"]
}