-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support of multiple appSrc(s) in ModuleScopePlugin #4079
Comments
Actually u can do something like this: new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson, paths.docsSrc]) |
@Andarist Yeah it is a workaround but I don't think it's the best practice to pass a folder path to
|
does it differ anyhow in results? |
I'd accept a pull request to add support for this in ejected setups (by letting |
I'm currently working on a project which invovled two src folder (
/src
and/docs/src
). And when I try to import files from/docs/src
ModuleScopePlugin prevents me from doing it since/docs/src
falls outside of/src
.So I'm wondering if ModuleScopePlugin can also accepts an array as its first parameter so that I can solve this problem with
new ModuleScopePlugin([paths.appSrc, paths.docsSrc], [paths.appPackageJson])
(docsSrc
is already defined inpaths.js
)The text was updated successfully, but these errors were encountered: