getRpdCache() — vite Function Reference
Architecture documentation for the getRpdCache() function in packages.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 41da51dc_6cf8_6db8_ad13_ab1389b28aec["getRpdCache()"] dff9cadb_1e8c_7fc9_4119_a173f1f21cbd["packages.ts"] 41da51dc_6cf8_6db8_ad13_ab1389b28aec -->|defined in| dff9cadb_1e8c_7fc9_4119_a173f1f21cbd 170ceb82_4bf1_2290_1f2e_bbdec11e5184["resolvePackageData()"] 170ceb82_4bf1_2290_1f2e_bbdec11e5184 -->|calls| 41da51dc_6cf8_6db8_ad13_ab1389b28aec 72a3d8a0_24bf_6aad_622c_540620daa22e["getRpdCacheKey()"] 41da51dc_6cf8_6db8_ad13_ab1389b28aec -->|calls| 72a3d8a0_24bf_6aad_622c_540620daa22e 66189dd4_8a7b_39bf_f978_4596050e68e2["traverseBetweenDirs()"] 41da51dc_6cf8_6db8_ad13_ab1389b28aec -->|calls| 66189dd4_8a7b_39bf_f978_4596050e68e2 style 41da51dc_6cf8_6db8_ad13_ab1389b28aec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/packages.ts lines 298–313
function getRpdCache(
packageCache: PackageCache,
pkgName: string,
basedir: string,
originalBasedir: string,
preserveSymlinks: boolean,
) {
const cacheKey = getRpdCacheKey(pkgName, basedir, preserveSymlinks)
const pkgData = packageCache.get(cacheKey)
if (pkgData) {
traverseBetweenDirs(originalBasedir, basedir, (dir) => {
packageCache.set(getRpdCacheKey(pkgName, dir, preserveSymlinks), pkgData)
})
return pkgData
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getRpdCache() do?
getRpdCache() is a function in the vite codebase, defined in packages/vite/src/node/packages.ts.
Where is getRpdCache() defined?
getRpdCache() is defined in packages/vite/src/node/packages.ts at line 298.
What does getRpdCache() call?
getRpdCache() calls 2 function(s): getRpdCacheKey, traverseBetweenDirs.
What calls getRpdCache()?
getRpdCache() is called by 1 function(s): resolvePackageData.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free