File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/babel-preset-react-app Expand file tree Collapse file tree 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') {
4646}
4747
4848if ( 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
4955 plugins . push . apply ( plugins , [
5056 // Adds component stack to warning messages
5157 require . resolve ( 'babel-plugin-transform-react-jsx-source' ) ,
@@ -91,4 +97,3 @@ if (env === 'test') {
9197 // ]);
9298 }
9399}
94-
You can’t perform that action at this time.
0 commit comments