File tree 2 files changed +9
-1
lines changed
packages/babel-preset-react-app
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,13 @@ module.exports = function(api, opts) {
101
101
regenerator : true ,
102
102
} ,
103
103
] ,
104
+ isEnvProduction && [
105
+ // Remove PropTypes from production build
106
+ require ( 'babel-plugin-transform-react-remove-prop-types' ) . default ,
107
+ {
108
+ removeImport : true ,
109
+ } ,
110
+ ] ,
104
111
// function* () { yield 42; yield 43; }
105
112
! isEnvTest && [
106
113
require ( '@babel/plugin-transform-regenerator' ) . default ,
Original file line number Diff line number Diff line change 26
26
"@babel/preset-flow" : " 7.0.0-beta.37" ,
27
27
"@babel/preset-react" : " 7.0.0-beta.37" ,
28
28
"babel-plugin-macros" : " 2.0.0" ,
29
- "babel-plugin-transform-dynamic-import" : " 2.0.0"
29
+ "babel-plugin-transform-dynamic-import" : " 2.0.0" ,
30
+ "babel-plugin-transform-react-remove-prop-types" : " 0.4.12"
30
31
}
31
32
}
You can’t perform that action at this time.
0 commit comments