Skip to content

Commit

Permalink
fix: React is not defined compilation error after ejected (facebook…
Browse files Browse the repository at this point in the history
  • Loading branch information
n3tr authored Oct 26, 2020
1 parent 7e48117 commit 027b03b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,6 @@ module.exports = function (webpackEnv) {
customize: require.resolve(
'babel-preset-react-app/webpack-overrides'
),
// @remove-on-eject-begin
babelrc: false,
configFile: false,
presets: [
[
require.resolve('babel-preset-react-app'),
Expand All @@ -417,6 +414,9 @@ module.exports = function (webpackEnv) {
},
],
],
// @remove-on-eject-begin
babelrc: false,
configFile: false,
// Make sure we have a unique cache identifier, erring on the
// side of caution.
// We remove this when the user ejects because the default
Expand Down

0 comments on commit 027b03b

Please sign in to comment.