Skip to content

Commit

Permalink
fix(getOptions): deprecation warn in loaderUtils (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantd authored and joshwiens committed Feb 25, 2017
1 parent 5681d9e commit c52de70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -8,7 +8,7 @@ var SourceMapConsumer = require("source-map").SourceMapConsumer;
var FOOTER = "/*** EXPORTS FROM exports-loader ***/\n";
module.exports = function(content, sourceMap) {
if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
var exports = [];
var keys = Object.keys(query);
if(keys.length == 1 && typeof query[keys[0]] == "boolean") {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"author": "Tobias Koppers @sokra",
"description": "exports loader module for webpack",
"dependencies": {
"loader-utils": "0.2.x",
"loader-utils": "^1.0.2",
"source-map": "0.5.x"
},
"repository": {
Expand Down

0 comments on commit c52de70

Please sign in to comment.