From f9ee69da96a7862d0546f0a110dbcae3dd0dc2a0 Mon Sep 17 00:00:00 2001 From: Martin Lundberg Date: Tue, 11 Dec 2018 14:26:45 +0100 Subject: [PATCH] Update webpack.config.js Disable AMD and solve swagger client issues since there is no intention of supporting it: https://github.com/facebook/create-react-app/issues/3247#issuecomment-341775913 --- packages/react-scripts/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.