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

Commit a8358a0

Browse files
authoredFeb 25, 2017
fix(getOptions): deprecation warn in loaderUtils (#129)
1 parent b01526a commit a8358a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = function(content) {
88
this.cacheable && this.cacheable();
99
if(!this.emitFile) throw new Error("emitFile is required from module system");
1010

11-
var query = loaderUtils.parseQuery(this.query);
11+
var query = loaderUtils.getOptions(this) || {};
1212
var configKey = query.config || "fileLoader";
1313
var options = this.options[configKey] || {};
1414

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"index.js"
88
],
99
"dependencies": {
10-
"loader-utils": "~0.2.5"
10+
"loader-utils": "^1.0.2"
1111
},
1212
"devDependencies": {
1313
"should": "~4.0.4",

0 commit comments

Comments
 (0)
This repository has been archived.