-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
”document“ should not appear in the Worker. #7779
Labels
Comments
For a workaround use import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
worker: {
format: 'es' // here
}
}) |
sapphi-red
added
p2-edge-case
Bug, but has workaround or limited in scope (priority)
and removed
pending triage
labels
Apr 18, 2022
Reopening as this is a bug |
9 tasks
9 tasks
can you give me the idea to replicate this @sapphi-red @Aloento |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Describe the bug
I use Comlink to work with Worker.
It's seems like:
And to use:
Then, everything is fine with dev, but after building:
Reproduction
https://github.com/Aloento/ErrorRepo
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: