From 295eb216c9311cdbb4083abde458b0b9d94411bd Mon Sep 17 00:00:00 2001 From: ryani33 Date: Fri, 24 Feb 2017 18:39:44 +0800 Subject: [PATCH] fix deprecated warning --- index.js | 2 +- package.json | 2 +- useable.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 2b12838..ab30bbe 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ var loaderUtils = require("loader-utils"), module.exports = function() {}; module.exports.pitch = function(remainingRequest) { if(this.cacheable) this.cacheable(); - var query = loaderUtils.parseQuery(this.query); + var query = loaderUtils.getOptions(this) || {}; return [ "// style-loader: Adds some css to the DOM by adding a