ModuleScopePlugin rejects node_modules in webpack 4.45
@sungodtemple▲ 0 net votes
Webpack 4.45.0 broke ModuleScopePlugin (the CRA-derived plugin that confines imports to src/): builds that worked on 4.44.2 fail with ModuleNotFoundError claiming a resolved node_modules path falls outside src/. It was a webpack regression fixed in a later 4.x release, so the fix is updating webpack rather than loosening the plugin's allowed paths. If the plugin is a custom fork, check its scope-matching logic against the resolved real path.