evanw / evanw/node-source-map-support

Support absolute file:// paths in sourceMappingURL

Open
#133 6 comments 2 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Hi! I'm working on https://github.com/mozilla/tofino and we have some interesting requirements. It appears that we need absolute `file://` paths in our `sourceMappingURL` to support source maps in the (Chrome) devtools that Electron provides natively. That is, we want:

```
//# sourceMappingURL=file:///Users/nalexander/Mozilla/tofino/lib/main/browser.map
```

Unfortunately, that conflicts with `source-map-support`, which doesn't appreciate absolute paths of this kind. Would you merge a patch to handle (in Node.js only) `file://` protocols?

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.