Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
fix(getOptions): deprecation warn in loaderUtils (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Feb 25, 2017
1 parent b01526a commit a8358a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function(content) {
this.cacheable && this.cacheable();
if(!this.emitFile) throw new Error("emitFile is required from module system");

var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
var configKey = query.config || "fileLoader";
var options = this.options[configKey] || {};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"index.js"
],
"dependencies": {
"loader-utils": "~0.2.5"
"loader-utils": "^1.0.2"
},
"devDependencies": {
"should": "~4.0.4",
Expand Down

0 comments on commit a8358a0

Please sign in to comment.