File tree 1 file changed +6
-1
lines changed
packages/babel-preset-react-app 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ if (env !== 'development' && env !== 'test' && env !== 'production') {
46
46
}
47
47
48
48
if ( env === 'development' || env === 'test' ) {
49
+ // The following two plugins are currently necessary to make React warnings
50
+ // include more valuable information. They are included here because they are
51
+ // currently not enabled in babel-preset-react. See the below threads for more info:
52
+ // https://github.com/babel/babel/issues/4702
53
+ // https://github.com/babel/babel/pull/3540#issuecomment-228673661
54
+ // https://github.com/facebookincubator/create-react-app/issues/989
49
55
plugins . push . apply ( plugins , [
50
56
// Adds component stack to warning messages
51
57
require . resolve ( 'babel-plugin-transform-react-jsx-source' ) ,
@@ -91,4 +97,3 @@ if (env === 'test') {
91
97
// ]);
92
98
}
93
99
}
94
-
You can’t perform that action at this time.
0 commit comments