Skip to content

Commit

Permalink
fix(getOptions): deprecation warn in loaderUtils (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantd authored and joshwiens committed Feb 25, 2017
1 parent 0e14835 commit 7129a27
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 @@ var SourceMapConsumer = require("source-map").SourceMapConsumer;
var HEADER = "/*** IMPORTS FROM imports-loader ***/\n";
module.exports = function(content, sourceMap) {
if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
var imports = [];
var postfixes = [];
Object.keys(query).forEach(function(name) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"travis": "npm run -s test"
},
"dependencies": {
"loader-utils": "^0.2.16",
"loader-utils": "^1.0.2",
"source-map": "^0.5.6"
},
"devDependencies": {
Expand Down

0 comments on commit 7129a27

Please sign in to comment.