-
|
Hello! I'm currently having difficulty creating a web-worker due to the same-origin restrictions. The assets of my web app are hosted on a CDN, which makes it impossible for me to load the web worker from the default asset public path. I am attempting to use the new syntax for creating a web worker with
Is it possible to achieve this with the new Worker(new URL('./worker.js', import.meta.url)) syntax? I have created a simple reproduction case in this Github repository: https://github.com/gretzkiy/webpack-url-assets-test/tree/master/project. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Are you looking for #16671? |
Beta Was this translation helpful? Give feedback.
-
|
@alexander-akait assisted me in troubleshooting this issue, and the outcome is as follows:
|
Beta Was this translation helpful? Give feedback.
@alexander-akait assisted me in troubleshooting this issue, and the outcome is as follows: