You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When I'm running a Vite build with
and importing https://github.com/Andarist/react-textarea-autosize, I seem to be getting the browser version even though they define a worker in exports. Based on the Vite documentation about mainFields, the conditional exports should take precedence.
I notice that the library has a warning because they are defining browser both at the root and in exports.
https://publint.dev/react-textarea-autosize@8.5.2
I've confirmed that removing the root browser field from the package then allows the worker export to be loaded.
Reproduction
N/A
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: