From bc51f98e598846f58d24773eb2f368bfbfa55cbe Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Fri, 24 Feb 2017 18:58:58 -0600 Subject: [PATCH] fix(getOptions): deprecation warn in loaderUtils --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",