diff --git a/index.js b/index.js index bb95093..0d1861a 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ module.exports = function(content) { this.cacheable && this.cacheable(); if(!this.emitFile) throw new Error("emitFile is required from module system"); - var query = loaderUtils.parseQuery(this.query); + var query = loaderUtils.getOptions(this) || {}; var configKey = query.config || "fileLoader"; var options = this.options[configKey] || {}; diff --git a/package.json b/package.json index a603caa..547de9a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "index.js" ], "dependencies": { - "loader-utils": "~0.2.5" + "loader-utils": "^1.0.2" }, "devDependencies": { "should": "~4.0.4",