From 2fc43fcbeb8399377ed368d103c9f06d5f6e76c1 Mon Sep 17 00:00:00 2001 From: ryani33 Date: Sat, 25 Feb 2017 10:43:10 +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 4de4f36..a95c5de 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ var loaderUtils = require("loader-utils"); module.exports = function() {}; module.exports.pitch = function(remainingRequest) { this.cacheable && this.cacheable(); - var query = loaderUtils.parseQuery(this.query); + var query = loaderUtils.getOptions(this) || {}; var moduleRequest = "!!" + remainingRequest; return [ diff --git a/package.json b/package.json index ce38bfc..64445e8 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ }, "homepage": "https://github.com/webpack/react-proxy-loader", "dependencies": { - "loader-utils": "~0.2.6" + "loader-utils": "^1.0.2" } }