Skip to content

Commit

Permalink
Pass intermediate source map to instrumenter
Browse files Browse the repository at this point in the history
Pass the intermediate source map to the instrumenter that can be used
to remap the coverage report to the original source.
Requires istanbuljs-archived-repos/istanbul-lib-instrument#23.

Fixes webpack-contrib#22, webpack-contrib#7, karma-runner/karma-coverage#109,
  • Loading branch information
Micha Reiser committed Sep 6, 2016
1 parent 1d0356b commit cb44c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ module.exports = function(source, sourceMap) {
var that = this;
return instrumenter.instrument(source, this.resourcePath, function (error, source) {
that.callback(error, source, instrumenter.lastSourceMap());
});
}, sourceMap);
};

0 comments on commit cb44c62

Please sign in to comment.