Skip to content

Commit 518e54d

Browse files
authored
Merge pull request #429 from helloyou2012/master
fix deprecation warning (close #427)
2 parents a078c82 + 16e7601 commit 518e54d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function(source) {
1919

2020
module.exports.pitch = function(request) {
2121
if(this.cacheable) this.cacheable();
22-
var query = loaderUtils.parseQuery(this.query);
22+
var query = loaderUtils.getOptions(this) || {};
2323
var loaders = this.loaders.slice(this.loaderIndex + 1);
2424
this.addDependency(this.resourcePath);
2525
// We already in child compiler, return empty bundle

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"ajv": "^4.11.2",
1414
"async": "^2.1.2",
15-
"loader-utils": "^0.2.16",
15+
"loader-utils": "^1.0.2",
1616
"webpack-sources": "^0.1.0"
1717
},
1818
"devDependencies": {

0 commit comments

Comments
 (0)