SFCDescriptor Type — vue Architecture
Architecture documentation for the SFCDescriptor type/interface in parseComponent.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 723c94a2_276b_7491_3957_5f4e8a659b73["SFCDescriptor"] ecb7777f_63cc_7bf6_1f6a_fedf933d43a4["parseComponent.ts"] 723c94a2_276b_7491_3957_5f4e8a659b73 -->|defined in| ecb7777f_63cc_7bf6_1f6a_fedf933d43a4 style 723c94a2_276b_7491_3957_5f4e8a659b73 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/parseComponent.ts lines 45–66
export interface SFCDescriptor {
source: string
filename: string
template: SFCBlock | null
script: SFCScriptBlock | null
scriptSetup: SFCScriptBlock | null
styles: SFCBlock[]
customBlocks: SFCCustomBlock[]
cssVars: string[]
errors: (string | WarningMessage)[]
/**
* compare with an existing descriptor to determine whether HMR should perform
* a reload vs. re-render.
*
* Note: this comparison assumes the prev/next script are already identical,
* and only checks the special case where `<script setup lang="ts">` unused
* import pruning result changes due to template changes.
*/
shouldForceReload: (prevImports: Record<string, ImportBinding>) => boolean
}
Defined In
Source
Frequently Asked Questions
What is the SFCDescriptor type?
SFCDescriptor is a type/interface in the vue codebase, defined in packages/compiler-sfc/src/parseComponent.ts.
Where is SFCDescriptor defined?
SFCDescriptor is defined in packages/compiler-sfc/src/parseComponent.ts at line 45.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free