Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 841c6c8

Browse files
committed
fix deprecated warning
1 parent 75fab90 commit 841c6c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var loaderUtils = require("loader-utils");
66
var mime = require("mime");
77
module.exports = function(content) {
88
this.cacheable && this.cacheable();
9-
var query = loaderUtils.parseQuery(this.query);
9+
var query = loaderUtils.getOptions(this) || {};
1010
var limit = (this.options && this.options.url && this.options.url.dataUrlLimit) || 0;
1111
if(query.limit) {
1212
limit = parseInt(query.limit, 10);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Tobias Koppers @sokra",
55
"description": "url loader module for webpack",
66
"dependencies": {
7-
"loader-utils": "0.2.x",
7+
"loader-utils": "^1.0.2",
88
"mime": "1.3.x"
99
},
1010
"peerDependencies": {

0 commit comments

Comments
 (0)