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

Function handleDep

playground/hmr/hmr.ts:52–57  ·  view source on GitHub ↗
(type, newFoo, newNestedFoo)

Source from the content-addressed store, hash-verified

50 })
51
52 const handleDep = (type, newFoo, newNestedFoo) => {
53 console.log(`(${type}) foo is now: ${newFoo}`)
54 console.log(`(${type}) nested foo is now: ${newNestedFoo}`)
55 text('.dep', newFoo)
56 text('.nested', newNestedFoo)
57 }
58
59 import.meta.hot.accept('./logo.svg', (newUrl) => {
60 setImgSrc('#logo', newUrl.default)

Callers 1

hmr.tsFile · 0.70

Calls 2

logMethod · 0.80
textFunction · 0.70

Tested by

no test coverage detected