Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 73e9235

Browse files
ryantdjoshwiens
authored andcommitted
fix(getOptions): deprecation warn in loaderUtils (#24)
1 parent fa9e554 commit 73e9235

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
@@ -3,7 +3,7 @@ var loaderUtils = require("loader-utils");
33
module.exports = function() {};
44
module.exports.pitch = function(remainingRequest) {
55
this.cacheable && this.cacheable();
6-
var query = loaderUtils.parseQuery(this.query);
6+
var query = loaderUtils.getOptions(this) || {};
77
var moduleRequest = "!!" + remainingRequest;
88

99
return [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
},
3333
"homepage": "https://github.com/webpack/react-proxy-loader",
3434
"dependencies": {
35-
"loader-utils": "~0.2.6"
35+
"loader-utils": "^1.0.2"
3636
}
3737
}

0 commit comments

Comments
 (0)