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

perf(vite): avoid an extra resolve call for every resolveId in layers #27971

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

danielroe
Copy link
Member

🔗 Linked issue

📚 Description

Looking into #25752 (comment), found that the extra resolve call was adding quite a bit of overhead.

I couldn't reproduce the original issue with the current version of Vite, so this plugin may not be necessary any more. However, by reducing it to a single resolve call per layer per build, I think we have a reasonable compromise.

But we might remove entirely in future under a flag, or even in this PR if it is not needed.

Copy link

stackblitz bot commented Jul 2, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe danielroe merged commit ebe6c71 into main Jul 2, 2024
39 checks passed
@danielroe danielroe deleted the perf/vite-resolve branch July 2, 2024 18:27
@github-actions github-actions bot mentioned this pull request Jul 2, 2024
@github-actions github-actions bot mentioned this pull request Jul 2, 2024
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

2 participants