Home / Function/ constructor() — vue Function Reference

constructor() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  aeee43e0_0a8a_79d9_e2ee_7ac935f70ab1["constructor()"]
  293d5bfa_b667_c8cc_f58a_fc99d479063d["CodegenState"]
  aeee43e0_0a8a_79d9_e2ee_7ac935f70ab1 -->|defined in| 293d5bfa_b667_c8cc_f58a_fc99d479063d
  3797286c_ee34_d7d3_7d84_b3bd41e06eaf["pluckModuleFunction()"]
  aeee43e0_0a8a_79d9_e2ee_7ac935f70ab1 -->|calls| 3797286c_ee34_d7d3_7d84_b3bd41e06eaf
  style aeee43e0_0a8a_79d9_e2ee_7ac935f70ab1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/codegen/index.ts lines 37–49

  constructor(options: CompilerOptions) {
    this.options = options
    this.warn = options.warn || baseWarn
    this.transforms = pluckModuleFunction(options.modules, 'transformCode')
    this.dataGenFns = pluckModuleFunction(options.modules, 'genData')
    this.directives = extend(extend({}, baseDirectives), options.directives)
    const isReservedTag = options.isReservedTag || no
    this.maybeComponent = (el: ASTElement) =>
      !!el.component || !isReservedTag(el.tag)
    this.onceId = 0
    this.staticRenderFns = []
    this.pre = false
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the vue codebase, defined in src/compiler/codegen/index.ts.
Where is constructor() defined?
constructor() is defined in src/compiler/codegen/index.ts at line 37.
What does constructor() call?
constructor() calls 1 function(s): pluckModuleFunction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free