fix deprecated warning

master
ryani33 2017-02-24 18:39:44 +08:00 committed by Joshua Wiens
parent c890854634
commit 295eb216c9
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ var loaderUtils = require("loader-utils"),
module.exports = function() {}; module.exports = function() {};
module.exports.pitch = function(remainingRequest) { module.exports.pitch = function(remainingRequest) {
if(this.cacheable) this.cacheable(); if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query); var query = loaderUtils.getOptions(this) || {};
return [ return [
"// style-loader: Adds some css to the DOM by adding a <style> tag", "// style-loader: Adds some css to the DOM by adding a <style> tag",
"", "",

View File

@ -12,6 +12,6 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"loader-utils": "^0.2.7" "loader-utils": "^1.0.2"
} }
} }

View File

@ -7,7 +7,7 @@ var loaderUtils = require("loader-utils"),
module.exports = function() {}; module.exports = function() {};
module.exports.pitch = function(remainingRequest) { module.exports.pitch = function(remainingRequest) {
if(this.cacheable) this.cacheable(); if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query); var query = loaderUtils.getOptions(this) || {};
return [ return [
"var refs = 0;", "var refs = 0;",
"var dispose;", "var dispose;",