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

Dependency Diagram

graph TD
  a5598d19_277e_d3ac_bbb1_56eca7b99b5e["SFCScriptBlock"]
  0efbfda6_f2a2_633c_6405_ea7a32c8a88d["parseComponent.ts"]
  a5598d19_277e_d3ac_bbb1_56eca7b99b5e -->|defined in| 0efbfda6_f2a2_633c_6405_ea7a32c8a88d
  style a5598d19_277e_d3ac_bbb1_56eca7b99b5e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

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[]
}

Frequently Asked Questions

What is the SFCScriptBlock type?
SFCScriptBlock is a type/interface in the vue codebase, defined in packages/compiler-sfc/src/parseComponent.ts.
Where is SFCScriptBlock defined?
SFCScriptBlock is defined in packages/compiler-sfc/src/parseComponent.ts at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free