diff --git a/index.js b/index.js index f6f24eb..23b156a 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ module.exports = function(source, sourceMap) { sourceMap = inlineSourceMap.sourcemap; } - var userOptions = loaderUtils.parseQuery(this.query); + var userOptions = loaderUtils.getOptions(this) || {}; var instrumenter = istanbulLibInstrument.createInstrumenter( assign({ produceSourceMap: this.sourceMap }, userOptions) ); diff --git a/package.json b/package.json index 5a3d7eb..74a968f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "dependencies": { "convert-source-map": "^1.3.0", "istanbul-lib-instrument": "^1.1.3", - "loader-utils": "^0.2.16", + "loader-utils": "^1.0.2", "object-assign": "^4.1.0" }, "engines": {