diff options
Diffstat (limited to 'modern/craco.config.js')
-rw-r--r-- | modern/craco.config.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/craco.config.js b/modern/craco.config.js new file mode 100644 index 00000000..3e5d98e9 --- /dev/null +++ b/modern/craco.config.js @@ -0,0 +1,12 @@ +module.exports = { + webpack: { + configure: webpackConfig => { + const scopePluginIndex = webpackConfig.resolve.plugins.findIndex( + ({ constructor }) => constructor && constructor.name === 'ModuleScopePlugin' + ); + + webpackConfig.resolve.plugins.splice(scopePluginIndex, 1); + return webpackConfig; + } + } +}; |