Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
fix(getOptions): deprecation warn in loaderUtils (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantd authored and joshwiens committed Feb 25, 2017
1 parent 5a79836 commit f5d8f9e
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() {};
module.exports.pitch = function(req) {
this.cacheable && this.cacheable();
var source = [];
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
query.ui = query.ui || 'bdd';
if(this.target == "web" || this.target == "electron-renderer") {
source.push("require(" + JSON.stringify("!!" + path.join(__dirname, "web.js")) + ");");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"script-loader": "~0.7.0",
"css-loader": "~0.23.1",
"style-loader": "~0.13.1",
"loader-utils": "~0.2.15"
"loader-utils": "^1.0.2"
},
"licenses": [
{
Expand Down

0 comments on commit f5d8f9e

Please sign in to comment.