Skip to content
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

Fixed source-map passed to istanbul-lib-instrument not being a plain object #10

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

Conversation

marekdedic
Copy link

Hi,
I stumbled upon this issue while trying to instrument code previously compiled with svelte. The resulting source-map was an instance of SourceMap, not a plain object. This led me to babel/babel#11614 and eventually to istanbuljs/istanbuljs#576 where it was stated that istanbul-lib-instrument expects the source map to be a plain object - something which this plugin does not make sure of. This PR fixes that and makes the source-map always be a plain object.

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.

None yet

1 participant