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

Commit 60c789d

Browse files
committedFeb 22, 2017
Upgrade loader-utils
1 parent eead4cc commit 60c789d

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
@@ -11,7 +11,7 @@ module.exports.pitch = function pitch(request) {
1111
if (!this.webpack) throw new Error('Only usable with webpack');
1212
this.cacheable(false);
1313
const callback = this.async();
14-
const query = loaderUtils.parseQuery(this.query);
14+
const query = loaderUtils.getOptions(this) || {};
1515
const filename = loaderUtils.interpolateName(this, query.name || '[hash].worker.js', {
1616
context: query.context || this.options.context,
1717
regExp: query.regExp,

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"webpack": ">=0.9 <2 || ^2.1.0-beta || ^2.2.0"
3232
},
3333
"dependencies": {
34-
"loader-utils": "0.2.x"
34+
"loader-utils": "^1.0.2"
3535
},
3636
"devDependencies": {
3737
"del": "^2.2.2",

0 commit comments

Comments
 (0)
This repository has been archived.