Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
➕ add SourceMaps remapping support (close #22, close #25)
Browse files Browse the repository at this point in the history
* Upgrade to istanbul-lib-instrument

* Pass intermediate source map to instrumenter

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 #22, #7, karma-runner/karma-coverage#109,
  • Loading branch information
Micha Reiser authored and Kir Belevich committed Nov 27, 2016
1 parent 36f5f8d commit d49b054
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 @@ -17,5 +17,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 d49b054

Please sign in to comment.