istanbul-instrumenter-loader
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -6,4 +6,11 @@ 'use strict'; | ||
var assign = require('object-assign'); | ||
var convert = require('convert-source-map'); | ||
module.exports = function(source, sourceMap) { | ||
// use inline source map, if any | ||
var inlineSourceMap = convert.fromSource(source); | ||
if (!sourceMap && inlineSourceMap) { | ||
sourceMap = inlineSourceMap.sourcemap; | ||
} | ||
var userOptions = loaderUtils.parseQuery(this.query); | ||
@@ -10,0 +17,0 @@ var instrumenter = istanbulLibInstrument.createInstrumenter( |
{ | ||
"name": "istanbul-instrumenter-loader", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Istanbul instrumenter loader for webpack", | ||
@@ -19,2 +19,3 @@ "keywords": [ | ||
"dependencies": { | ||
"convert-source-map": "^1.3.0", | ||
"istanbul-lib-instrument": "^1.1.3", | ||
@@ -21,0 +22,0 @@ "loader-utils": "^0.2.16", |
@@ -8,4 +8,2 @@ ## Istanbul instrumenter loader for [webpack](https://webpack.github.io/) | ||
It's not "ES6 ready" yet, see [#33](https://github.com/deepsweet/istanbul-instrumenter-loader/issues/33) for some technical details. | ||
### Install | ||
@@ -12,0 +10,0 @@ |
4453
23
4
96
+ Addedconvert-source-map@^1.3.0
+ Addedconvert-source-map@1.9.0(transitive)