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

Specify resolving sources #32

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jridgewell
Copy link
Member

@jridgewell jridgewell commented Mar 5, 2024

I had a bug in my source URL resolution where I resolved sourceMappingUrl and sourceRoot, then used that result to resolve source. The under-specified behavior is that sourceRoot is prepended (treating it as a directory) to source, then resolved using sourceMappingUrl as the base.

Implementations:

Open questions:

@jkrems
Copy link
Collaborator

jkrems commented May 4, 2024

Should this PR be ported to https://github.com/tc39/source-map instead, now that the spec has moved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants