createCompiler() — vue Function Reference
Architecture documentation for the createCompiler() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 5e33e1e0_159e_45ee_a1cd_33a5b88f58de["createCompiler()"] da6f913d_df09_ab43_1296_7f19325c6a21["createCompilerCreator()"] 5e33e1e0_159e_45ee_a1cd_33a5b88f58de -->|calls| da6f913d_df09_ab43_1296_7f19325c6a21 bbf88914_62b5_839d_3cfb_85a00fd1d67b["parse()"] 5e33e1e0_159e_45ee_a1cd_33a5b88f58de -->|calls| bbf88914_62b5_839d_3cfb_85a00fd1d67b 47a275bd_2581_aeff_9124_e9298610ab3f["optimize()"] 5e33e1e0_159e_45ee_a1cd_33a5b88f58de -->|calls| 47a275bd_2581_aeff_9124_e9298610ab3f 2aea58e1_5763_f065_a7b6_b9c4ca026b21["generate()"] 5e33e1e0_159e_45ee_a1cd_33a5b88f58de -->|calls| 2aea58e1_5763_f065_a7b6_b9c4ca026b21 style 5e33e1e0_159e_45ee_a1cd_33a5b88f58de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/index.ts lines 10–24
export const createCompiler = createCompilerCreator(function baseCompile(
template: string,
options: CompilerOptions
): CompiledResult {
const ast = parse(template.trim(), options)
if (options.optimize !== false) {
optimize(ast, options)
}
const code = generate(ast, options)
return {
ast,
render: code.render,
staticRenderFns: code.staticRenderFns
}
})
Domain
Subdomains
Source
Frequently Asked Questions
What does createCompiler() do?
createCompiler() is a function in the vue codebase.
What does createCompiler() call?
createCompiler() calls 4 function(s): createCompilerCreator, generate, optimize, parse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free