Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Worker is broken since 5.2.0 #16308

Closed
Mister-Hope opened this issue Mar 29, 2024 · 1 comment
Closed

Web Worker is broken since 5.2.0 #16308

Mister-Hope opened this issue Mar 29, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Mister-Hope
Copy link

Mister-Hope commented Mar 29, 2024

Describe the bug

The commit dd49505 breaks web worker, as the overlay.ts is imported at worker side, while worker does not have document globals.

image

The #15852 pr is merged since Vite 5.2, so all Vite 5.2 versions are not able to use workers.

const worker = new Worker(new URL('./worker/index.js', import.meta.url), { type: 'module' });
@sapphi-red
Copy link
Member

Duplicate of #16277

@sapphi-red sapphi-red marked this as a duplicate of #16277 Mar 30, 2024
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2024
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Mar 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants