generate() — vue Function Reference
Architecture documentation for the generate() function in codegen.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 4e39da40_6cb1_aa2b_3351_d7600a4f01d0["generate()"] 0eb11b52_7b12_f1cc_ae13_a11bead27b1a["createCompiler()"] 0eb11b52_7b12_f1cc_ae13_a11bead27b1a -->|calls| 4e39da40_6cb1_aa2b_3351_d7600a4f01d0 2542f704_a476_ae9f_30fc_92b570bd82f4["generate()"] 4e39da40_6cb1_aa2b_3351_d7600a4f01d0 -->|calls| 2542f704_a476_ae9f_30fc_92b570bd82f4 55398ede_0597_fb47_dd8c_edb8c5aacdad["genSSRElement()"] 4e39da40_6cb1_aa2b_3351_d7600a4f01d0 -->|calls| 55398ede_0597_fb47_dd8c_edb8c5aacdad style 4e39da40_6cb1_aa2b_3351_d7600a4f01d0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/optimizing-compiler/codegen.ts lines 38–48
export function generate(
ast: ASTElement | void,
options: CompilerOptions
): CodegenResult {
const state = new CodegenState(options)
const code = ast ? genSSRElement(ast, state) : '_c("div")'
return {
render: `with(this){return ${code}}`,
staticRenderFns: state.staticRenderFns
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does generate() do?
generate() is a function in the vue codebase.
What does generate() call?
generate() calls 2 function(s): genSSRElement, generate.
What calls generate()?
generate() is called by 1 function(s): createCompiler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free