From b7aebb8e16d2e36858fe8256a906b230f67b6235 Mon Sep 17 00:00:00 2001 From: ryani33 Date: Sat, 25 Feb 2017 10:29:55 +0800 Subject: [PATCH] fix deprecated warning --- 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" } }