Skip to content

Commit 86d7049

Browse files
committed
fix deprecated warning
1 parent 96387aa commit 86d7049

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
@@ -14,7 +14,7 @@ function randomIdent() {
1414
}
1515

1616
function getLoaderConfig(context) {
17-
var query = loaderUtils.parseQuery(context.query);
17+
var query = loaderUtils.getOptions(context) || {};
1818
var config = (context.options && context.options.vue && context.options.vue.html) || {};
1919
delete query.config;
2020
return assign(query, config);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"es6-templates": "^0.2.2",
88
"fastparse": "^1.0.0",
99
"html-minifier": "^2.1.5",
10-
"loader-utils": "^0.2.15",
10+
"loader-utils": "^1.0.2",
1111
"object-assign": "^4.1.0"
1212
},
1313
"devDependencies": {

0 commit comments

Comments
 (0)