Skip to content

Handle promise when generating source maps #102

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dbisso
Copy link

@dbisso dbisso commented Sep 9, 2022

Fixes #97

Later versions of source-map return a promise from the SourceMapConsumer constructor so we need to wait for it to be resolved before iterating the through the mappings.

dbisso and others added 4 commits September 6, 2022 16:49
SourceMapGenerator returns a Promise which we need to wait for before getting each mapping
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: resultMap.eachMapping is not a function
1 participant