From 1fc5144cdc6b081ca843cbac56cab1e0a129ecaf Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Mon, 27 Feb 2017 21:12:44 -0800 Subject: [PATCH 1/2] Fix parseQuery deprecation for loader-utils 1.0.0 Ref https://github.com/webpack/loader-utils/issues/56 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); From a6859fc439643bc1db3c2a4358351c21336fdbbd Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Mon, 27 Feb 2017 21:13:50 -0800 Subject: [PATCH 2/2] Update to loader-utils 1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {