2019-05-22 16:31:09 +02:00
|
|
|
const { addDecoratorsLegacy, disableEsLint, override } = require('customize-cra')
|
2019-05-27 09:22:08 +02:00
|
|
|
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin')
|
2019-05-09 12:03:18 +02:00
|
|
|
|
2019-05-27 09:22:08 +02:00
|
|
|
const disableModuleScopePlugin = () => config => {
|
2019-08-01 15:10:22 +02:00
|
|
|
config.resolve.plugins = config.resolve.plugins.filter(plugin => !(plugin instanceof ModuleScopePlugin))
|
2019-05-27 09:22:08 +02:00
|
|
|
return config
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = override(addDecoratorsLegacy(), disableEsLint(), disableModuleScopePlugin())
|