Skip to content

Commit

Permalink
Fix for webpack 4
Browse files Browse the repository at this point in the history
  • Loading branch information
princemaple committed Feb 27, 2018
1 parent afaa20b commit 71b1df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ loader.pitch = function(request) {
const cb = this.async();

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

Expand Down

0 comments on commit 71b1df8

Please sign in to comment.