renderRoot() — vite Function Reference
Architecture documentation for the renderRoot() function in app.js from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 2f4eb8dc_c597_53d2_93ca_8554e2c05d62["renderRoot()"] d44c698e_d1cd_ed19_8d50_613125d5aef6["app.js"] 2f4eb8dc_c597_53d2_93ca_8554e2c05d62 -->|defined in| d44c698e_d1cd_ed19_8d50_613125d5aef6 cf21fac9_e015_27a5_f6ea_3605ffc57cc6["escapeHtml()"] 2f4eb8dc_c597_53d2_93ca_8554e2c05d62 -->|calls| cf21fac9_e015_27a5_f6ea_3605ffc57cc6 style 2f4eb8dc_c597_53d2_93ca_8554e2c05d62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/ssr/src/app.js lines 22–34
async function renderRoot(rootDir) {
const paths = Object.keys(pathRenderers).filter((key) => key !== '/')
return `
<ul>
${paths
.map(
(path) =>
`<li><a href="${escapeHtml(path)}">${escapeHtml(path)}</a></li>`,
)
.join('\n')}
</ul>
`
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does renderRoot() do?
renderRoot() is a function in the vite codebase, defined in playground/ssr/src/app.js.
Where is renderRoot() defined?
renderRoot() is defined in playground/ssr/src/app.js at line 22.
What does renderRoot() call?
renderRoot() calls 1 function(s): escapeHtml.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free