evanw / evanw/node-source-map-support

supportRelativeURL should handle source as a url

Open
#218 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Despite the name of the argument, `supportRelativeURL`'s second argument, `url`, will be mangled if it is a fully-qualified URL, leading to error paths like `/Users/ckknight/Code/myproject/https:/github.com/ckknight/myproject/blob/...` instead of the expected URL.

This can occur when `"sources"` within a `.map` file contains references to URLs instead of relative paths.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.