diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 746884a03eb..fe4b43754c0 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -299,7 +299,7 @@ module.exports = function(webpackEnv) { strictExportPresence: true, rules: [ // Disable require.ensure as it's not a standard language feature. - { parser: { requireEnsure: false } }, + { parser: { requireEnsure: false, amd: false } }, // First, run the linter. // It's important to do this before Babel processes the JS.