Skip to content

Commit 22823ca

Browse files
authored
1 parent 85f9565 commit 22823ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ loader.pitch = function(request) {
114114
if (options.inline) {
115115
worker.url = `URL.createObjectURL(new Blob([${JSON.stringify(contents)}]))`;
116116
}
117+
else if (options.publicPath) {
118+
worker.url = `${JSON.stringify(options.publicPath)} + ${JSON.stringify(worker.file)}`;
119+
}
117120
else {
118121
worker.url = `__webpack_public_path__ + ${JSON.stringify(worker.file)}`;
119122
}

0 commit comments

Comments
 (0)