Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vitejs/vite
/ watchChange
Function
watchChange
packages/vite/src/node/packages.ts:283–287 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
281
watchFile = watchFileStub
282
},
283
watchChange(id) {
284
if
(id.endsWith(
'/package.json'
)) {
285
invalidatePackageData(packageCache, path.normalize(id))
286
}
287
},
288
}
289
}
290
Callers
nothing calls this directly
Calls
1
invalidatePackageData
Function · 0.85
Tested by
no test coverage detected