-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webpack/bundler Fix: Update worker JS file import URL to be compatibl…
…e with bundlers (#22165) This PR closes #22140 by updating the URL used to import the worker JS in `library_pthread.js::allocateUnusedWorker`. Previously the URL would be: ```js worker = new Worker(new URL(import.meta.url)) ``` which webpack translates to the`file:///` path, causing the import to fail b/c the `file://` path is not valid to access ([webpack docs import meta](https://webpack.js.org/blog/2020-10-10-webpack-5-release/#importmeta)).
- Loading branch information
1 parent
35be995
commit a7b833c
Showing
4 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters