From 5ac6aa56ddf8f393f1b81fe5f79fa75513b5120d Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Fri, 24 Feb 2017 19:12:40 -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 ffb11ee0..d55e5eab 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ var trailingSlash = /[\\\/]$/; module.exports = function(source) { var loaderContext = this; - var query = loaderUtils.parseQuery(this.query); + var query = loaderUtils.getOptions(this) || {}; var cb = this.async(); var isSync = typeof cb !== "function"; var finalCb = cb || this.callback; diff --git a/package.json b/package.json index cb07a041..c1c45e5c 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ } ], "dependencies": { - "loader-utils": "^0.2.5" + "loader-utils": "^1.0.2" } }