getHtmlFilename() — vite Function Reference
Architecture documentation for the getHtmlFilename() function in indexHtml.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3["getHtmlFilename()"] 3f56d5b2_9fca_532f_3bfc_6bfb2be77015["indexHtml.ts"] 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3 -->|defined in| 3f56d5b2_9fca_532f_3bfc_6bfb2be77015 7a53712a_b13b_4bc2_85fc_b4de5cb705fb["createDevHtmlTransformFn()"] 7a53712a_b13b_4bc2_85fc_b4de5cb705fb -->|calls| 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3 2f0da199_9f02_5b00_9a83_0406650f871a["fsPathFromId()"] 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3 -->|calls| 2f0da199_9f02_5b00_9a83_0406650f871a a4adb1a7_cf54_091f_eb63_8217e684a8e1["normalizePath()"] 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3 -->|calls| a4adb1a7_cf54_091f_eb63_8217e684a8e1 style 0b899fd9_dc16_f8f4_3092_43b7af9ce3a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/middlewares/indexHtml.ts lines 109–117
function getHtmlFilename(url: string, server: ViteDevServer) {
if (url.startsWith(FS_PREFIX)) {
return decodeURIComponent(fsPathFromId(url))
} else {
return decodeURIComponent(
normalizePath(path.join(server.config.root, url.slice(1))),
)
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getHtmlFilename() do?
getHtmlFilename() is a function in the vite codebase, defined in packages/vite/src/node/server/middlewares/indexHtml.ts.
Where is getHtmlFilename() defined?
getHtmlFilename() is defined in packages/vite/src/node/server/middlewares/indexHtml.ts at line 109.
What does getHtmlFilename() call?
getHtmlFilename() calls 2 function(s): fsPathFromId, normalizePath.
What calls getHtmlFilename()?
getHtmlFilename() is called by 1 function(s): createDevHtmlTransformFn.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free