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

Eliminate 'ignored' case from module resolver #2209

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Eliminate 'ignored' case from module resolver #2209

merged 2 commits into from
Dec 12, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Dec 11, 2024

The ignored result was created to deal with the weird way vite resolves many things as "external" during dependency prescanning. But it was still complicating our ability to properly detect components during prescan.

This refactor manages to use the state capture we were already relying on to identify true "not_found" that vite was ignoring to also provide the true "found" that vite is ignoring, so our own use of the resolver never needs to deal with an "ignored" state.

The ignored result was created to deal with the weird way vite resolves many things as "external" during dependency prescanning. But it was still complicating our ability to properly detect components during prescan.

This refactor manages to use the state capture we were already relying on to identify true "not_found" that vite was ignoring to also provide the true "found" that vite is ignoring, so our own use of the resolver never needs to deal with an "ignored" state.
@ef4 ef4 added the bug Something isn't working label Dec 11, 2024
@ef4 ef4 merged commit 01e21e6 into main Dec 12, 2024
211 checks passed
@ef4 ef4 deleted the eliminate-ignored branch December 12, 2024 01:30
@github-actions github-actions bot mentioned this pull request Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant