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 @@ -54,6 +54,12 @@ if (env !== 'development' && env !== 'test' && env !== 'production') {
54
54
}
55
55
56
56
if ( env === 'development' || env === 'test' ) {
57
+ // The following two plugins are currently necessary to make React warnings
58
+ // include more valuable information. They are included here because they are
59
+ // currently not enabled in babel-preset-react. See the below threads for more info:
60
+ // https://github.com/babel/babel/issues/4702
61
+ // https://github.com/babel/babel/pull/3540#issuecomment-228673661
62
+ // https://github.com/facebookincubator/create-react-app/issues/989
57
63
plugins . push . apply ( plugins , [
58
64
// Adds component stack to warning messages
59
65
require . resolve ( 'babel-plugin-transform-react-jsx-source' ) ,
@@ -99,4 +105,3 @@ if (env === 'test') {
99
105
// ]);
100
106
}
101
107
}
102
-
You can’t perform that action at this time.
0 commit comments