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

Function hmr

playground/hmr-ssr/__tests__/hmr-ssr.spec.ts:44–44  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

42})
43
44const hmr = (key: string) => (globalThis.__HMR__[key] as string) || ''
45
46const updated = (file: string, via?: string) => {
47 if (via) {

Callers 4

elFunction · 0.70
query1Function · 0.70
query2Function · 0.70
hmr-ssr.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected