-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Improvements to on-demand-entries #5176
Improvements to on-demand-entries #5176
Conversation
const hasNoModuleFoundError = /ENOENT/.test(e.message) || /Module not found/.test(e.message) | ||
if (!hasNoModuleFoundError) return false | ||
// compilation.entrypoints is a Map object, so iterating over it 0 is the key and 1 is the value | ||
for (const [, entrypoint] of compilation.entrypoints.entries()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main change in this PR is that we're no longer calling doneCallbacks
on entries
, because this leads to timing issues. Instead we use webpack's compilation.entrypoints
as the source of truth of what's compiled (which is logical, as it holds exactly what's compiled in this compilation run).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good 👍
First wave of changes. Just landing this first so that there is a base to build on.