File tree 2 files changed +8
-3
lines changed
packages/babel-preset-react-app
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 29
29
"yarn.lock" : [
30
30
" git rm --cached"
31
31
]
32
- },
33
- "dependencies" : {}
32
+ }
34
33
}
Original file line number Diff line number Diff line change @@ -61,7 +61,11 @@ module.exports = function(api, opts) {
61
61
] ,
62
62
[
63
63
require ( '@babel/preset-react' ) . default ,
64
- { development : isEnvDevelopment || isEnvTest } ,
64
+ {
65
+ // Adds component stack to warning messages
66
+ // Adds __self attribute to JSX which React will use for some warnings
67
+ development : isEnvDevelopment || isEnvTest ,
68
+ } ,
65
69
] ,
66
70
[ require ( '@babel/preset-flow' ) . default ] ,
67
71
] . filter ( Boolean ) ,
@@ -93,6 +97,8 @@ module.exports = function(api, opts) {
93
97
regenerator : true ,
94
98
} ,
95
99
] ,
100
+ // Adds syntax support for import()
101
+ require ( '@babel/plugin-syntax-dynamic-import' ) ,
96
102
isEnvTest &&
97
103
// Transform dynamic import to require
98
104
require ( 'babel-plugin-transform-dynamic-import' ) . default ,
You can’t perform that action at this time.
0 commit comments