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