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
When Vite SSR transforms file that has source map with multiple sources, only a single entry is returned in the final source map's sources. This causes issues in Vitest: vitest-dev/vitest#6120
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 Vite SSR transforms file that has source map with multiple
sources
, only a single entry is returned in the final source map'ssources
. This causes issues in Vitest: vitest-dev/vitest#6120With source map like
... Vite returns map with
sources: ["./first.ts"]
. The"./second.ts"
is dropped during SSR transform.Reproduction
https://stackblitz.com/~/edit/vitejs-vite-fj3cj8
Steps to reproduce
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: