Skip to content

Support multiple instances of source-map-support #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhendric
Copy link

@rhendric rhendric commented Apr 3, 2018

This covers the use cases that b40cc25 doesn't; namely, if several
libraries reference different versions of source-map-support, then they
would previously all get their own source map caches, handler arrays,
etc., and not work with each other. This commit moves such data from
module-local variables into a versioned global object, enabling multiple
instances of source-map-support to cooperate.

Fixes #91.

This covers the use cases that b40cc25 doesn't; namely, if several
libraries reference different versions of source-map-support, then they
would previously all get their own source map caches, handler arrays,
etc., and not work with each other. This commit moves such data from
module-local variables into a versioned global object, enabling multiple
instances of source-map-support to cooperate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant