Skip to content

Commit 41cff66

Browse files
authored
Merge pull request #26 from princemaple/patch-1
Fix for webpack 4
2 parents afaa20b + 71b1df8 commit 41cff66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ loader.pitch = function(request) {
1717
const cb = this.async();
1818

1919
const filename = loaderUtils.interpolateName(this, `${options.name || '[hash]'}.worker.js`, {
20-
context: options.context || this.options.context,
20+
context: options.context || this.rootContext || this.options.context,
2121
regExp: options.regExp
2222
});
2323

0 commit comments

Comments
 (0)