-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
fix(client): hmr on web workers #18554
base: main
Are you sure you want to change the base?
Conversation
await untilUpdated( | ||
() => page.textContent('.simple-worker-url'), | ||
'Hello from simple worker!', | ||
true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhmm, I need to review this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we don't test build in CI and so we can just remove the true
param here, maybe used in some other test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the flag used only with isBuild
, it doesn't matter if we pass it or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very happy that finally someone is looking into this.
But IMO the worker should connect to the main thread and use message passing so that errors and reload works
Description
There is a todo in L360 in the client module, should we clear the console?
fixes #5396
/cc @bluwy from your comment here #10262 (comment)
Cannot run
vitest run -c vitest.config.e2e.ts
(nr test-serve
) on my local Windows laptop (I have developer mode enabled and repo cloned usinggit clone -c core.symlinks=true ...
):