fix(vue): handle undefined on import.meta.hot.accept (fixes #8625)#9011
Conversation
✅ Deploy Preview for vite-docs-main canceled.
|
|
So with an undefined mod we still calls .acept to give users a way to react to errors? Do we have special handling for this somewhere? Or we always bail out? |
|
I had also wondered about how errors are reported with |
|
We still call .accept with undefined mod for that reason (I'm not sure if it is useful). Here, when there is an error at vite/packages/vite/src/client/client.ts Lines 411 to 421 in ce790c4 So this vite/packages/vite/src/client/client.ts Lines 426 to 428 in ce790c4 |
|
I think that maybe an API specific to communicating errors could be better here. But maybe I'm missing some context. We can merge this, and in any case, count it as a temporal guard and discuss this in the next team meeting. |
Description
fixes #8625
refs #8626
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).