Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0320801 commit c3ac43cCopy full SHA for c3ac43c
packages/vite-node/src/hmr/emitter.ts
@@ -63,6 +63,15 @@ export function viteNodeHmrPlugin(): Plugin {
63
_send(payload)
64
emitter.emit('message', payload)
65
}
66
+ // eslint-disable-next-line ts/ban-ts-comment
67
+ // @ts-ignore Vite 6 compat
68
+ const environments = server.environments
69
+ if (environments) {
70
+ environments.ssr.hot.send = function (payload: any) {
71
+ _send(payload)
72
+ emitter.emit('message', payload)
73
+ }
74
75
},
76
77
0 commit comments