Skip to content

Commit

Permalink
Merge pull request #48 from airtonix/patch-1
Browse files Browse the repository at this point in the history
use getOptions instead of parseQuery
  • Loading branch information
at0g committed Mar 10, 2017
2 parents 0f6004d + 0a0dbc4 commit 73296df
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 @@ -25,7 +25,7 @@ module.exports = function (source) {
this.cacheable();

if (!hasRun){
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this.query);

This comment has been minimized.

Copy link
@seancolyer

seancolyer Mar 10, 2017

I think this change broke this loader for me from a fresh install today. package.json in this project defines: "loader-utils": "^0.2.12",. loaderUtils.getOptions wasn't introduced until webpack/loader-utils@6f4472a which was included in 1.0.0 major release.

I think this project probably needs to switch this dependency to ^1.0.0, or similar. Should I open up a pr?


if (query){

Expand Down

0 comments on commit 73296df

Please sign in to comment.