This preset includes the following plugins:
- babel-plugin-react-class-display-name
- babel-plugin-react-remove-prop-types
- babel-plugin-dev-expression
$ npm install babel-plugin-react-production --save-dev
Add the following line to your .babelrc file:
{
"presets": ["react"],
"env": {
"production": {
"presets": ["react-production"]
}
}
}