Home / Type/ SFCScriptBlock Type — vue Architecture

SFCScriptBlock Type — vue Architecture

Architecture documentation for the SFCScriptBlock type/interface in parseComponent.ts from the vue codebase.

Entity Profile

Source Code

packages/compiler-sfc/src/parseComponent.ts lines 30–43

export interface SFCScriptBlock extends SFCBlock {
  type: 'script'
  setup?: string | boolean
  bindings?: BindingMetadata
  imports?: Record<string, ImportBinding>
  /**
   * import('\@babel/types').Statement
   */
  scriptAst?: any[]
  /**
   * import('\@babel/types').Statement
   */
  scriptSetupAst?: any[]
}

Analyze Your Own Codebase

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

Try Supermodel Free