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.
I'm having the same issue on both 3.2.5 and v4.0.0-beta.0 🤔
I tested it on Webpack and it works just fine but not on Vite.
Here is a minimal, reproducible example: https://stackblitz.com/edit/vitejs-vite-qtvcrk
Describe the bug
Vite does not correctly map the browser field
when it meet
import { current } from "lib-a"
.Vite Resolved:
import { current } from "lib-a"
Expected (Rollup resolved):
import { current } from "lib-b"
Tested versions:
Reproduction
https://github.com/luo3house/vite-bug-browserfield
Steps to reproduce
README.md
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: