Skip to content

Commit aaa2ead

Browse files
n3trwombleton
authored andcommitted
fix: React is not defined compilation error after ejected (facebook#9885)
1 parent ecfdb76 commit aaa2ead

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-scripts/config/webpack.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,6 @@ module.exports = function (webpackEnv) {
406406
customize: require.resolve(
407407
'babel-preset-react-app/webpack-overrides'
408408
),
409-
// @remove-on-eject-begin
410-
babelrc: false,
411-
configFile: false,
412409
presets: [
413410
[
414411
require.resolve('babel-preset-react-app'),
@@ -417,6 +414,9 @@ module.exports = function (webpackEnv) {
417414
},
418415
],
419416
],
417+
// @remove-on-eject-begin
418+
babelrc: false,
419+
configFile: false,
420420
// Make sure we have a unique cache identifier, erring on the
421421
// side of caution.
422422
// We remove this when the user ejects because the default

0 commit comments

Comments
 (0)