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

RFC: Ignore context in resolve caching when resolve or resolveLoader plugins are provided. #5178

Merged
merged 4 commits into from Jul 1, 2017

Conversation

mikesherov
Copy link
Contributor

@mikesherov mikesherov commented Jun 28, 2017

Fixes #4863

The CI builds will fail because they're pointing to my fork of enhanced-resolve, so this is just an RFC showing how we'd use webpack/enhanced-resolve#92 to address the issue at hand.

In the future, we can even make resolve or resolveLoader plugins specify whether they need context and we can make the cacheWithContext check smarter.

@mikesherov mikesherov changed the title Ignore context in resolve caching when resolve or resolveLoader plugins are provided. RFC: Ignore context in resolve caching when resolve or resolveLoader plugins are provided. Jun 28, 2017
package.json Outdated
@@ -9,7 +9,7 @@
"ajv": "^5.1.5",
"ajv-keywords": "^2.0.0",
"async": "^2.1.2",
"enhanced-resolve": "^3.0.0",
"enhanced-resolve": "mikesherov/enhanced-resolve#b03799b6f06f82423e0a5c57fcc196b8eaeb8c07",
Copy link
Member

Choose a reason for hiding this comment

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

^3.2.0

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.

yarn.lock file need to be updated

@webpack-bot
Copy link
Contributor

@sokra Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@TheLarkInn Please review the new changes.

@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 aaa6eea into webpack:master Jul 1, 2017
@sokra
Copy link
Member

sokra commented Jul 1, 2017

Thanks

@ZuBB
Copy link

ZuBB commented Jul 5, 2017

@sokra should we expect new release (with this fix included) in next week or so? I am just trying to understand what is better way for us: wait a bit or stick to particular changeset

Thanks in advance

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.

[Performance] Webpack 2.4.0+ slower than 2.3.x
5 participants