oklas / react-app-alias

:label: Alias and multiple src directory for craco or rewired create-react-app
MIT License
173 stars 18 forks source link

fix(scope): preserve `ModuleScopePlugin.allowedFiles` #47

Closed LoneRifle closed 2 years ago

LoneRifle commented 2 years ago

If we are expanding file scopes for plugins, ensure that the ModuleScopePlugin retains its original entries. This allows us to accommodate react-scripts@>=5, which uses webpack@5, which in turn no longer has in-built shims and hence needs this to be explicitly given

Fixes #46