Skip to content

Commit 10b3842

Browse files
committed
fix(vite): use server.ws
Fix #414
1 parent d60101c commit 10b3842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/vite/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function createViteContext(server: ViteDevServer): ServerContext {
1313
}
1414

1515
function reload() {
16-
server.hot.send({
16+
server.ws.send({
1717
type: 'full-reload',
1818
path: '*',
1919
})
@@ -37,7 +37,7 @@ export function createViteContext(server: ViteDevServer): ServerContext {
3737
// mod.lastInvalidationTimestamp,
3838
// ROUTES_LAST_LOAD_TIME.value
3939
// )
40-
server.hot.send({
40+
server.ws.send({
4141
type: 'update',
4242
updates: [
4343
{

0 commit comments

Comments
 (0)