aboutsummaryrefslogtreecommitdiff
path: root/modern/craco.config.js
blob: 3e5d98e918a2e5917487a86fa094c955ab039e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
    }
  }
};