-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[SolidJS] Browser Main Fields override Export Conditions #10323
Comments
I have the same problem, except I'm not using SolidJS. I'm using React. I've got my issue detailed in the discord discussions tab. I'll copy some of the more important details here, as I don't expect everyone to have access to Discord. Vite module resolution seemingly doesn't respect the exports
|
Any traction on this? It's a blocker for me to start using the Bundler module resolution in my tsconfig |
I've discussed with @sapphi-red and we think this is working as expected. The The object form of Closing this as expected behavior. |
Describe the bug
Expected Behavior
When an export condition matches it doesn't use the "browser" main field to remap it just because "browser" was set.
Actual Behavior
In our case it matches on "worker" and then gets upgraded to the "browser" version unexpectedly.
Additional Information
solidjs/solid-start#263 Lays out the issue.
This issue isn't only unexpected but it makes things very difficult. We have 3 things trying to balance:
All these seem unmoveable. But perhaps main field overriding export conditions is not. The linked issues shows our attempts at trying to fix this. And backlinks relevant Github issues.
Reproduction
https://github.com/patdx/solid-start-graphql-cloudflare/tree/main/solid-with-standard-adapter
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: