Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #429 from helloyou2012/master
Browse files Browse the repository at this point in the history
fix deprecation warning (close #427)
  • Loading branch information
bebraw authored Feb 24, 2017
2 parents a078c82 + 16e7601 commit 518e54d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function(source) {

module.exports.pitch = function(request) {
if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
var loaders = this.loaders.slice(this.loaderIndex + 1);
this.addDependency(this.resourcePath);
// We already in child compiler, return empty bundle
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"ajv": "^4.11.2",
"async": "^2.1.2",
"loader-utils": "^0.2.16",
"loader-utils": "^1.0.2",
"webpack-sources": "^0.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 518e54d

Please sign in to comment.