evanw/node-source-map-support

Support absolute file:// paths in sourceMappingURL

Open

#133 创建于 2016年4月27日

在 GitHub 查看
 (6 评论) (2 反应) (0 负责人)JavaScript (2,078 star) (242 fork)batch import
help wanted

描述

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?

贡献者指南

Support absolute file:// paths in sourceMappingURL · evanw/node-source-map-support#133 | Good First Issue