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

Include input source map in file coverage #23

Merged

Commits on Nov 7, 2016

  1. Include input source map in file coverage

    Add an option to include an input source map. The input source map
    is the source map that maps the code before its instumentation back it's
    original form. This is needed to support more complex setups, e.g. when
    bundlers are involved. If a bundler like webpack, browserify - or you
    name it - is used, then there are several, intermediate, source maps
    involved. The main issue is, that the instrumented code is bundled
    into a single file, and therefore a new source map is created. But the
    source map of the bundled file cannot be used to remap the istanbul coverage.
    Therefore, these intermediate source maps need to be stored to be available
    when creating the report or remaping.
    
    This solution is kind of hacky and should start a discussion how to solve
    it best. Anyway, it fixes variouis issues that, up to now, required hacky
    solutions.
    
    refs SitePen/remap-istanbul#2
    Micha Reiser committed Nov 7, 2016
    Configuration menu
    Copy the full SHA
    11df1cd View commit details
    Browse the repository at this point in the history