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

Include module file and context dependencies in ConcatenatedModule #5137

Merged
merged 2 commits into from Jul 1, 2017

Conversation

mzgoddard
Copy link
Contributor

@mzgoddard mzgoddard commented Jun 22, 2017

What kind of change does this PR introduce?

bugfix #5132

Did you add tests for your changes?

Yes

If relevant, link to documentation update:

N/A

Summary

#5132

As ModuleConcatenationPlugin removes the concatenated modules from a
compilation, the file and context dependencies of those modules needs
to be stored in the ConcatenatedModule for webpack to be able to watch
those paths.

Does this PR introduce a breaking change?

No

Other information

As ModuleConcatenationPlugin removes the concatenated modules from a
compilation, the file and context dependencies of those modules needs
to be stored in the ConcatenatedModule for webpack to be able to watch
those paths.
@mzgoddard mzgoddard force-pushed the concatenated-file-dependencies branch from 30c95fd to 9ea40f0 Compare June 22, 2017 14:43
@mzgoddard
Copy link
Contributor Author

Happy to add tests. Just need direction on that. Not sure where to add an appropriate test.

@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
Copy link
Member

sokra commented Jun 22, 2017

You can add a watchTest -> test/watchCases

ModuleConcatenationPlugin creates a ConcatenatedModule from harmony
modules. It must be rebuilt when those modules change.
@mzgoddard
Copy link
Contributor Author

Test added. Let me know if you want any changes.

Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome that you included a watch test 👍

@sokra sokra merged commit a6e4cdd into webpack:master Jul 1, 2017
@sokra
Copy link
Member

sokra commented Jul 1, 2017

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.

None yet

3 participants