-
Notifications
You must be signed in to change notification settings - Fork 20
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: replace dep.module with ModuleGraph API #38
Conversation
Thanks for the work. Just a few questions before merge and publish. Does it still works with webpack 4 after changing to ModuleGraph API? |
It's not quite OK just yet, I've been running the tests and some fail. |
The changes in this PR look safe to me now: it only uses the ModuleGraph API if available and the integration tests are all green!
which doesn't seem to be supported in v5 anymore:
All tests with this config fail for the same reason - specifically:
So we can't just upgrade to v5 yet but it's a step towards that. |
I was also trying to test on v5 without success. I will just publish without "official" v5 support. |
Thanks a lot! |
When running on Webpack 5.0.0-rc.4, it fails to compile and throws the following error:
This change is to use
compilation.moduleGraph.getModule()
to prevent that.