Skip to content
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

Fix LoaderPlugin not resolving recursively #7059

Merged
merged 1 commit into from
Apr 17, 2018

Conversation

bastimeyer
Copy link
Contributor

What kind of change does this PR introduce?

bugfix

Did you add tests for your changes?

Yes, although I'm not entirely sure if there are already tests which could simply be changed or if my new tests should to be moved to a different folder.

If relevant, link to documentation update:

...

Summary

Fixes #4959
loaderContext.loadModule currently doesn't resolve modules recursively, which leads to unresolved dependencies when the modules loaded by the loader get loaded regularly later on.
Without the changes made in LoaderPlugin.js, the provided tests fail.

Does this PR introduce a breaking change?

No

Other information

#6517 intended to fix the issue, but its tests failed.

@webpack-bot
Copy link
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra sokra merged commit babc8a4 into webpack:master Apr 17, 2018
@sokra
Copy link
Member

sokra commented Apr 17, 2018

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

loaderContext.loadModule does not load modules recursively
3 participants