Home / Function/ createCompiler() — vue Function Reference

createCompiler() — vue Function Reference

Architecture documentation for the createCompiler() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  0eb11b52_7b12_f1cc_ae13_a11bead27b1a["createCompiler()"]
  04307c3f_aa3a_2ee6_85e3_aebc122881e3["createCompilerCreator()"]
  0eb11b52_7b12_f1cc_ae13_a11bead27b1a -->|calls| 04307c3f_aa3a_2ee6_85e3_aebc122881e3
  c27f0203_4eed_0348_4118_e8e105adc6ee["parse()"]
  0eb11b52_7b12_f1cc_ae13_a11bead27b1a -->|calls| c27f0203_4eed_0348_4118_e8e105adc6ee
  1e04863e_ed92_93a3_3105_0644c2d680cf["optimize()"]
  0eb11b52_7b12_f1cc_ae13_a11bead27b1a -->|calls| 1e04863e_ed92_93a3_3105_0644c2d680cf
  4e39da40_6cb1_aa2b_3351_d7600a4f01d0["generate()"]
  0eb11b52_7b12_f1cc_ae13_a11bead27b1a -->|calls| 4e39da40_6cb1_aa2b_3351_d7600a4f01d0
  style 0eb11b52_7b12_f1cc_ae13_a11bead27b1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/index.ts lines 7–19

export const createCompiler = createCompilerCreator(function baseCompile(
  template: string,
  options: CompilerOptions
): CompiledResult {
  const ast = parse(template.trim(), options)
  optimize(ast, options)
  const code = generate(ast, options)
  return {
    ast,
    render: code.render,
    staticRenderFns: code.staticRenderFns
  }
})

Subdomains

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