Skip to content

Commit

Permalink
chore: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 24, 2024
1 parent 0d43319 commit 3dd31a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const hmrClient = new HMRClient(
},
{
isReady: () => socket && socket.readyState === 1,
send: (message) => socket.send(JSON.stringify(message)),
send: (payload) => socket.send(JSON.stringify(payload)),
},
async function importUpdatedModule({
acceptedPath,
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/ssr/runtime/serverHmrConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export class ServerHMRConnector implements ModuleRunnerHMRConnection {
return this.connected
}

send(message: HotPayload): void {
const payload = message as CustomPayload
send(payload_: HotPayload): void {
const payload = payload_ as CustomPayload
this.hotChannel.api.innerEmitter.emit(
payload.event,
payload.data,
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/shared/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ class HMRMessenger {

private queue: HotPayload[] = []

public send(message: HotPayload): void {
this.queue.push(message)
public send(payload: HotPayload): void {
this.queue.push(payload)
this.flush()
}

Expand Down

0 comments on commit 3dd31a4

Please sign in to comment.