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

Function handleDep

playground/hmr-ssr/hmr.ts:39–44  ·  view source on GitHub ↗
(type, newFoo, newNestedFoo)

Source from the content-addressed store, hash-verified

37 })
38
39 const handleDep = (type, newFoo, newNestedFoo) => {
40 log(`(${type}) foo is now: ${newFoo}`)
41 log(`(${type}) nested foo is now: ${newNestedFoo}`)
42 text('.dep', newFoo)
43 text('.nested', newNestedFoo)
44 }
45
46 import.meta.hot.accept('./logo.svg', (newUrl) => {
47 setImgSrc('#logo', newUrl.default)

Callers 1

hmr.tsFile · 0.70

Calls 2

logFunction · 0.85
textFunction · 0.70

Tested by

no test coverage detected