invalidatePackageData() — vite Function Reference
Architecture documentation for the invalidatePackageData() function in packages.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 1a695de8_b1e7_7895_f74f_336f516de603["invalidatePackageData()"] dff9cadb_1e8c_7fc9_4119_a173f1f21cbd["packages.ts"] 1a695de8_b1e7_7895_f74f_336f516de603 -->|defined in| dff9cadb_1e8c_7fc9_4119_a173f1f21cbd 19079986_f2b8_99fb_9d98_03f44722e17c["watchPackageDataPlugin()"] 19079986_f2b8_99fb_9d98_03f44722e17c -->|calls| 1a695de8_b1e7_7895_f74f_336f516de603 a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath()"] 1a695de8_b1e7_7895_f74f_336f516de603 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1 style 1a695de8_b1e7_7895_f74f_336f516de603 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/packages.ts lines 51–61
function invalidatePackageData(
packageCache: PackageCache,
pkgPath: string,
): void {
const pkgDir = normalizePath(path.dirname(pkgPath))
packageCache.forEach((pkg, cacheKey) => {
if (pkg.dir === pkgDir) {
packageCache.delete(cacheKey)
}
})
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does invalidatePackageData() do?
invalidatePackageData() is a function in the vite codebase, defined in packages/vite/src/node/packages.ts.
Where is invalidatePackageData() defined?
invalidatePackageData() is defined in packages/vite/src/node/packages.ts at line 51.
What does invalidatePackageData() call?
invalidatePackageData() calls 1 function(s): normalizePath.
What calls invalidatePackageData()?
invalidatePackageData() is called by 1 function(s): watchPackageDataPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free