Skip to content

Commit

Permalink
fix(vite): use server.ws
Browse files Browse the repository at this point in the history
Fix #414
  • Loading branch information
posva committed Jun 7, 2024
1 parent d60101c commit 10b3842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/vite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function createViteContext(server: ViteDevServer): ServerContext {
}

function reload() {
server.hot.send({
server.ws.send({
type: 'full-reload',
path: '*',
})
Expand All @@ -37,7 +37,7 @@ export function createViteContext(server: ViteDevServer): ServerContext {
// mod.lastInvalidationTimestamp,
// ROUTES_LAST_LOAD_TIME.value
// )
server.hot.send({
server.ws.send({
type: 'update',
updates: [
{
Expand Down

0 comments on commit 10b3842

Please sign in to comment.