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: add browser to default resolve.mainFields #809

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

WoodyWoodsta
Copy link
Contributor

Fixes #808

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

Thanks for catching it, I forgot to fix this 🤦

@dominikg dominikg merged commit cdd3b3a into sveltejs:main Nov 21, 2023
5 checks passed
@benoitf
Copy link

benoitf commented Nov 23, 2023

FYI when using this library https://github.com/Cweili/svelte-fa/blob/master/package.json the update to v3.0.1 make the library failed now (v3.0.1) while with v3.0.0 it was working (with vite5)

@dominikg
Copy link
Member

FYI when using this library https://github.com/Cweili/svelte-fa/blob/master/package.json the update to v3.0.1 make the library failed now (v3.0.1) while with v3.0.0 it was working (with vite5)

Hi, please file an issue report with a minimal reproduction. the package.json of that library looks very complex and it's possible that this change unmasked a preexisting issue that was never triggered before due to the previous svelte field resolution algorithm

benmccann pushed a commit to benmccann/vite-plugin-svelte that referenced this pull request Nov 28, 2023
* fix: add browser to default resolve.mainFields

* chore: fix test

---------

Co-authored-by: bluwy <[email protected]>
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.

Default Vite mainFields is incorrect (missing "browser")
4 participants