Support SharedWorker
See original GitHub issueIs your feature request related to a problem? Please describe.
Currently Vite allow import a web worker like this: import MyWorker from './worker?worker';
but not shared worker
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker
It should be easy to add Shared Worker support since it’s just a different Constructor.
Describe the solution you’d like
import MySharedWorker from './worker?sharedworker';
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Shared Web Workers | Can I use... Support tables for HTML5 ...
Method of allowing multiple scripts to communicate with a single web worker. Usage % of. all users, all tracked, tracked desktop, tracked mobile....
Read more >SharedWorker - Web APIs - MDN Web Docs
The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows ...
Read more >Why did Safari drop support for SharedWorker? - Stack Overflow
That's the reason why safari drop the SharedWorker , interestingly, it support WebWorker but not SharedWorker .
Read more >Add support for SharedWorker in ng-cli · Issue #20279 - GitHub
Describe the solution you'd like. There should be an ng generate shared-worker command that works similar to the commands for web and service...
Read more >Shared workers - HTML Standard, Edition for Web Developers
var worker = new SharedWorker ( 'service.js' );. Communicating with shared workers is done with explicit MessagePort objects. The object ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Was there any update on this? I see there’s #2505 but it hasn’t been update since March 21
@williamtetlow please go ahead. I’m totally fine