Skip to content
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

fix: use relative paths in sources for transformed source maps #12079

Merged

Commits on Feb 24, 2023

  1. fix: use relative paths in sources of transformed source maps

    This refines the fix from vitejs#4985 to
    turn absolute paths into relative paths for the `sources` array in
    source maps for transformer outputs (and thereby 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].
    
    Bug: https://crbug.com/1411596
    Ref: vitejs#4964
    Ref: vitejs#4912
    
    [^1]: https://goo.gle/devtools-vite-interoperability
    bmeurer committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    172c3e3 View commit details
    Browse the repository at this point in the history