Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use relative paths in
sources
for esbuild
This refines the fix from #4985 to turn absolute paths into relative paths for the `sources` array in source maps generated by esbuild (and therefore completely avoids the Windows drive letter problem). In order to minimize unintended negative side effects, we perform this step only when the source file name is absolute. This addresses the issue that source files show up with an absolute path prefix in case of Vue[^1]. It doesn't change anything when using SvelteKit (where the problem did not exist in the first place). When using SolidStart, the problem still persists, likely because it doesn't use the `transformWithEsbuild` function, and therefore needs a follow up fix. Bug: https://crbug.com/1411596 Ref: #4964 Ref: #4912 [^1]: https://goo.gle/devtools-vite-interoperability
- Loading branch information