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

chore(sourcemap): convert inputSourceMap to plain js object #272

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

Commits on Feb 17, 2022

  1. chore(sourcemap): convert inputSourceMap to plain js object

    @babel/core recently made a change where the sourcemap is no longer a plain js
    object, but instead is a class SourceMap. This breaks when the coverage data
    gets passed into valueToNode by istanbul-lib-instrument because the coverage
    data is no longer entirely plain json objects (this.cov.toJSON() just returns
    the data and doesn't do any conversion).
    
    In this PR we are checking if the input sourcemap is a plain js object, and
    converting it if it is not.
    Adam J. Hines committed Feb 17, 2022
    Configuration menu
    Copy the full SHA
    7f49bc4 View commit details
    Browse the repository at this point in the history