Skip to content

Commit

Permalink
Fix the 'query' may be 'null' (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
leenty authored and ForbesLindesay committed Mar 29, 2018
1 parent 19be2fe commit c97986a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(source) {

var req = loaderUtils.getRemainingRequest(this).replace(/^!/, "");

var query = loaderUtils.getOptions(this);
var query = loaderUtils.getOptions(this) || {};

var loadModule = this.loadModule;
var resolve = this.resolve;
Expand Down

0 comments on commit c97986a

Please sign in to comment.