From a8358a0ebbcced42a841c6a38a13ed43387b47b7 Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Fri, 24 Feb 2017 19:04:41 -0600 Subject: [PATCH] fix(getOptions): deprecation warn in loaderUtils (#129) --- 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",