File tree 2 files changed +3
-8
lines changed
packages/babel-preset-react-app
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ module.exports = function(api, opts) {
76
76
// Adds component stack to warning messages
77
77
// Adds __self attribute to JSX which React will use for some warnings
78
78
development : isEnvDevelopment || isEnvTest ,
79
+ // Will use the native built-in instead of trying to polyfill
80
+ // behavior for any plugins that require one.
81
+ useBuiltIns : true ,
79
82
} ,
80
83
] ,
81
84
isFlowEnabled && [ require ( '@babel/preset-flow' ) . default ] ,
@@ -99,13 +102,6 @@ module.exports = function(api, opts) {
99
102
useBuiltIns : true ,
100
103
} ,
101
104
] ,
102
- // Transforms JSX
103
- [
104
- require ( '@babel/plugin-transform-react-jsx' ) . default ,
105
- {
106
- useBuiltIns : true ,
107
- } ,
108
- ] ,
109
105
// Polyfills the runtime needed for async/await and generators
110
106
[
111
107
require ( '@babel/plugin-transform-runtime' ) . default ,
Original file line number Diff line number Diff line change 20
20
"@babel/plugin-transform-destructuring" : " 7.0.0-beta.42" ,
21
21
"@babel/plugin-transform-react-constant-elements" : " 7.0.0-beta.42" ,
22
22
"@babel/plugin-transform-react-display-name" : " 7.0.0-beta.42" ,
23
- "@babel/plugin-transform-react-jsx" : " 7.0.0-beta.42" ,
24
23
"@babel/plugin-transform-regenerator" : " 7.0.0-beta.42" ,
25
24
"@babel/plugin-transform-runtime" : " 7.0.0-beta.42" ,
26
25
"@babel/preset-env" : " 7.0.0-beta.42" ,
You can’t perform that action at this time.
0 commit comments