Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 083638b

Browse files
ryantdjoshwiens
authored andcommitted
fix(getOptions): deprecation warn in loaderUtils (#18)
1 parent ac23ae3 commit 083638b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var baseRegex = "\\s*[@#]\\s*sourceMappingURL=data:[^;\n]+;base64,([^\\s]*)",
1010
regex2 = new RegExp("//"+baseRegex+".*$");
1111
module.exports = function(input) {
1212
if(!this.query) throw new Error("Pass a module name as query to the transform-loader.");
13-
var query = loaderUtils.parseQuery(this.query);
13+
var query = loaderUtils.getOptions(this) || {};
1414
var callback = this.async();
1515
var resource = this.resource;
1616
var loaderContext = this;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "http://github.com/webpack/transform-loader.git"
99
},
1010
"dependencies": {
11-
"loader-utils": "^0.2.16"
11+
"loader-utils": "^1.0.2"
1212
},
1313
"devDependencies": {
1414
"brfs": "~1.0.0",

0 commit comments

Comments
 (0)