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

fix: ignore protocol when resolve svelte field #225

Merged
merged 1 commit into from
Dec 14, 2021
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 13, 2021

Fixes the CI issue in sveltejs/kit#3034 where the node: protocol was messing with resolving the svelte field of package.json. Adding node-fetch, Vite's scanner seems to resolve its nested imports using Vite plugin's resolveId, and because we're using enforce: "pre", we encounter this scenario before Vite's default resolver, which would've handled this.

I'm also not sure why it's resolving the nested imports, but at the meantime this addition looks fine as well.

@bluwy bluwy merged commit 77a7597 into main Dec 14, 2021
@bluwy bluwy deleted the fix-svelte-resolve branch December 14, 2021 17:00
@github-actions github-actions bot mentioned this pull request Dec 15, 2021
@github-actions github-actions bot mentioned this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants