fix deprecated warning
parent
c890854634
commit
295eb216c9
2
index.js
2
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 <style> tag",
|
||||
"",
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"loader-utils": "^0.2.7"
|
||||
"loader-utils": "^1.0.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 [
|
||||
"var refs = 0;",
|
||||
"var dispose;",
|
||||
|
|
Loading…
Reference in New Issue