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

Improvements to on-demand-entries #5176

Merged
merged 13 commits into from
Sep 16, 2018

Conversation

timneutkens
Copy link
Member

First wave of changes. Just landing this first so that there is a base to build on.

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()) {
Copy link
Member Author

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).

Copy link
Member

@shuding shuding left a comment

Choose a reason for hiding this comment

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

looks good 👍

@timneutkens timneutkens merged commit 459c1c1 into vercel:canary Sep 16, 2018
@timneutkens timneutkens deleted the fix/on-demand-entries-changes branch September 16, 2018 14:06
timneutkens added a commit that referenced this pull request Sep 16, 2018
Follow-up of #5176

Closes #5173 as it led to inconsistencies in DX.
@lock lock bot locked as resolved and limited conversation to collaborators Sep 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants