Skip to content

Commit 7129a27

Browse files
ryantdjoshwiens
authored andcommitted
fix(getOptions): deprecation warn in loaderUtils (#41)
1 parent 0e14835 commit 7129a27

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
@@ -8,7 +8,7 @@ var SourceMapConsumer = require("source-map").SourceMapConsumer;
88
var HEADER = "/*** IMPORTS FROM imports-loader ***/\n";
99
module.exports = function(content, sourceMap) {
1010
if(this.cacheable) this.cacheable();
11-
var query = loaderUtils.parseQuery(this.query);
11+
var query = loaderUtils.getOptions(this) || {};
1212
var imports = [];
1313
var postfixes = [];
1414
Object.keys(query).forEach(function(name) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"travis": "npm run -s test"
99
},
1010
"dependencies": {
11-
"loader-utils": "^0.2.16",
11+
"loader-utils": "^1.0.2",
1212
"source-map": "^0.5.6"
1313
},
1414
"devDependencies": {

0 commit comments

Comments
 (0)