Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Fix loader-utils warning #47

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -12,7 +12,7 @@ module.exports = function(source, sourceMap) {
sourceMap = inlineSourceMap.sourcemap;
}

var userOptions = loaderUtils.parseQuery(this.query);
var userOptions = loaderUtils.getOptions(this) || {};
var instrumenter = istanbulLibInstrument.createInstrumenter(
assign({ produceSourceMap: this.sourceMap }, userOptions)
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"convert-source-map": "^1.3.0",
"istanbul-lib-instrument": "^1.1.3",
"loader-utils": "^0.2.16",
"loader-utils": "^1.0.2",
"object-assign": "^4.1.0"
},
"engines": {
Expand Down