From 83694820ef9b11a79b374e244969d7b7491ae128 Mon Sep 17 00:00:00 2001 From: Jirat Ki Date: Sat, 24 Oct 2020 13:58:32 +0800 Subject: [PATCH] Fix jsx-runtime got removed during ejection --- packages/react-scripts/config/webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 80c6ac27ac..8328726b68 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -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'), @@ -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