question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support SharedWorker

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
celsobonutticommented, May 18, 2021

Was there any update on this? I see there’s #2505 but it hasn’t been update since March 21

1reaction
oliverzycommented, Feb 22, 2021

@williamtetlow please go ahead. I’m totally fine

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found