Skip to content

Commit 71b1df8

Browse files
authored
Fix for webpack 4
according to THE guy https://twitter.com/TheLarkInn/status/968286344794419200
1 parent afaa20b commit 71b1df8

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)