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(register/esm): pass file urls as paths #840

Merged
merged 1 commit into from
Aug 13, 2024

Commits on Aug 12, 2024

  1. fix(register/esm): pass file urls as paths

    compile() expects a filename, not a url: it passes the
    value directly to the bindings module, which immediately
    parses it as a `Path` unconditionally.
    
    This causes input file source maps to fail to load, as it
    attempts to find the URL as if it were a file on disk.
    (see swc-project/swc#9422)
    
    This is a targeted fix which hopefully minimizes the chance of things breaking.
    simonbuchan committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    2f24af2 View commit details
    Browse the repository at this point in the history