blob: 32971f244974f63759931d6a1f2c991b4719c6b2 (
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;
},
},
};
|