evanw / evanw/node-source-map-support

Unable to create multiple instances

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

Description

It's possible that someone would need to install the module more than once to support different file retrievals. For example, using the babel CLI and it uses this module with in-memory source map look ups. However, someone that wants to add support for the rest of the application now can't. I propose removing the global overrides of `retrieveFile`, etc. and instead using an array of functions that resolve to the first supported.

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.