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
  36a9bd87_2874_e10b_2ce8_ddd048046352["constructor()"]
  60be7ac1_6434_fac4_f5be_94ad5b9caab5["pluckModuleFunction()"]
  36a9bd87_2874_e10b_2ce8_ddd048046352 -->|calls| 60be7ac1_6434_fac4_f5be_94ad5b9caab5
  7a0093e3_a58a_af71_971f_488b65897e74["extend()"]
  36a9bd87_2874_e10b_2ce8_ddd048046352 -->|calls| 7a0093e3_a58a_af71_971f_488b65897e74
  style 36a9bd87_2874_e10b_2ce8_ddd048046352 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
  }

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the vue codebase.
What does constructor() call?
constructor() calls 2 function(s): extend, pluckModuleFunction.

Analyze Your Own Codebase

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

Try Supermodel Free