We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f9565 commit 22823caCopy full SHA for 22823ca
src/index.js
@@ -114,6 +114,9 @@ loader.pitch = function(request) {
114
if (options.inline) {
115
worker.url = `URL.createObjectURL(new Blob([${JSON.stringify(contents)}]))`;
116
}
117
+ else if (options.publicPath) {
118
+ worker.url = `${JSON.stringify(options.publicPath)} + ${JSON.stringify(worker.file)}`;
119
+ }
120
else {
121
worker.url = `__webpack_public_path__ + ${JSON.stringify(worker.file)}`;
122
0 commit comments