Skip to content

Files

Latest commit

 

History

History

create-react-scripts-babelrc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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"]
}