MCPcopy
hub / github.com/vitejs/vite / on

Method on

packages/vite/types/hot.d.ts:27–27  ·  view source on GitHub ↗
(
    event: T,
    cb: (payload: InferCustomEventPayload<T>) => void,
  )

Source from the content-addressed store, hash-verified

25 invalidate(message?: string): void
26
27 on<T extends CustomEventName>(
28 event: T,
29 cb: (payload: InferCustomEventPayload<T>) => void,
30 ): void

Callers 15

vite.jsFile · 0.65
untilBrowserLogFunction · 0.65
vitestSetup.tsFile · 0.65
notifyRebuildCompleteFunction · 0.65
collectStreamsFunction · 0.65
startedOnPortFunction · 0.65
cli.spec.tsFile · 0.65
configureServerFunction · 0.65
hmr.tsFile · 0.65
configureServerFunction · 0.65
untilConsoleLogFunction · 0.65
configureServerFunction · 0.65

Implementers 1

HMRContextpackages/vite/src/shared/hmr.ts

Calls

no outgoing calls

Tested by 8

collectStreamsFunction · 0.52
startedOnPortFunction · 0.52
configureServerFunction · 0.52
untilConsoleLogFunction · 0.52
sendRawRequestFunction · 0.52
fetchModuleViaWebSocketFunction · 0.52
collectStreamsFunction · 0.52
startedOnPortFunction · 0.52