fsPathFromId() — vite Function Reference
Architecture documentation for the fsPathFromId() function in utils.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 2f0da199_9f02_5b00_9a83_0406650f871a["fsPathFromId()"] 031bc221_67a8_c579_f2bf_bb30a08beeb2["utils.ts"] 2f0da199_9f02_5b00_9a83_0406650f871a -->|defined in| 031bc221_67a8_c579_f2bf_bb30a08beeb2 7afe7894_efd7_32c4_3b59_4a2cdc5ba6a2["optimizerResolvePlugin()"] 7afe7894_efd7_32c4_3b59_4a2cdc5ba6a2 -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3["getHtmlFilename()"] 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3 -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a fc571085_3ab0_feca_5965_61c2be1d5c08["indexHtmlMiddleware()"] fc571085_3ab0_feca_5965_61c2be1d5c08 -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a 13770e2a_c6d8_fb1f_6562_e66de7bc1deb["transformMiddleware()"] 13770e2a_c6d8_fb1f_6562_e66de7bc1deb -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a 1c19c7da_486b_6fa0_e7ab_0c3784456fc6["fsPathFromUrl()"] 1c19c7da_486b_6fa0_e7ab_0c3784456fc6 -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a 0850ad90_f980_60a3_ab1f_b17433109b74["prettifyUrl()"] 0850ad90_f980_60a3_ab1f_b17433109b74 -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath()"] 2f0da199_9f02_5b00_9a83_0406650f871a -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1 style 2f0da199_9f02_5b00_9a83_0406650f871a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/utils.ts lines 232–237
export function fsPathFromId(id: string): string {
const fsPath = normalizePath(
id.startsWith(FS_PREFIX) ? id.slice(FS_PREFIX.length) : id,
)
return fsPath[0] === '/' || VOLUME_RE.test(fsPath) ? fsPath : `/${fsPath}`
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does fsPathFromId() do?
fsPathFromId() is a function in the vite codebase, defined in packages/vite/src/node/utils.ts.
Where is fsPathFromId() defined?
fsPathFromId() is defined in packages/vite/src/node/utils.ts at line 232.
What does fsPathFromId() call?
fsPathFromId() calls 1 function(s): normalizePath.
What calls fsPathFromId()?
fsPathFromId() is called by 6 function(s): fsPathFromUrl, getHtmlFilename, indexHtmlMiddleware, optimizerResolvePlugin, prettifyUrl, transformMiddleware.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free