We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf298a commit 0b67af9Copy full SHA for 0b67af9
packages/react-scripts/config/webpack.config.js
@@ -478,7 +478,8 @@ module.exports = function (webpackEnv) {
478
strictExportPresence: true,
479
rules: [
480
// Disable require.ensure as it's not a standard language feature.
481
- { parser: { requireEnsure: false } },
+ // Add support for magic comments in commonjs modules (i.e. webpackIgnore for dynamic imports)
482
+ { parser: { requireEnsure: false, commonjsMagicComments: true} },
483
{
484
// iModel.js Changes
485
// always use source-map-loader and use strip-assert-loader on production builds;
0 commit comments