node-source-map-support icon indicating copy to clipboard operation
node-source-map-support copied to clipboard

supportRelativeURL should handle source as a url

Open ckknight opened this issue 7 years ago • 1 comments

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.

ckknight avatar Jul 21 '18 05:07 ckknight

Proposed fix is here: https://github.com/evanw/node-source-map-support/pull/332

pfhayes avatar Jul 04 '23 16:07 pfhayes