Skip to content

Commit 5cd0933

Browse files
committed
Merge remote-tracking branch 'origin/master' into re-disable-babel-destructuring
2 parents a6bfed2 + 80fe767 commit 5cd0933

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/babel-preset-react-app/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ if (env !== 'development' && env !== 'test' && env !== 'production') {
4646
}
4747

4848
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
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-

0 commit comments

Comments
 (0)