ModuleOptions Type — vue Architecture
Architecture documentation for the ModuleOptions type/interface in compiler.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD ec58d7e8_9f40_b7f8_0961_30150054b849["ModuleOptions"] 155f72a7_8db4_5e38_a27c_e709852883ee["compiler.ts"] ec58d7e8_9f40_b7f8_0961_30150054b849 -->|defined in| 155f72a7_8db4_5e38_a27c_e709852883ee style ec58d7e8_9f40_b7f8_0961_30150054b849 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/types/compiler.ts lines 53–65
export type ModuleOptions = {
// transform an AST node before any attributes are processed
// returning an ASTElement from pre/transforms replaces the element
preTransformNode?: (el: ASTElement) => ASTElement | null | void
// transform an AST node after built-ins like v-if, v-for are processed
transformNode?: (el: ASTElement) => ASTElement | null | void
// transform an AST node after its children have been processed
// cannot return replacement in postTransform because tree is already finalized
postTransformNode?: (el: ASTElement) => void
genData?: (el: ASTElement) => string // generate extra data string for an element
transformCode?: (el: ASTElement, code: string) => string // further transform generated code for an element
staticKeys?: Array<string> // AST properties to be considered static
}
Defined In
Source
Frequently Asked Questions
What is the ModuleOptions type?
ModuleOptions is a type/interface in the vue codebase, defined in src/types/compiler.ts.
Where is ModuleOptions defined?
ModuleOptions is defined in src/types/compiler.ts at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free