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 merging sourcemaps on Windows #14282

Merged
merged 1 commit into from Feb 17, 2022

Commits on Feb 17, 2022

  1. Fix merging sourcemaps on Windows

    On win32 machines, the sourceFileName uses backslash paths like
    `C:\foo\bar.js`. But sourcemaps are always posix paths, so we need to
    normalize to regular slashes before we can merge (else we won't find the
    source associated with our input map).
    This mirrors code done while generating the output map at
    https://github.com/babel/babel/blob/5c2fcadc9ae34fd20dd72b1111d5cf50476d700d/packages/babel-generator/src/source-map.ts#L102
    jridgewell committed Feb 17, 2022
    Copy the full SHA
    bc0ffb4 View commit details
    Browse the repository at this point in the history