ModuleOptions Type — vue Architecture
Architecture documentation for the ModuleOptions type/interface in compiler.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 087b3758_d09b_bfe9_7940_1b8d08eca957["ModuleOptions"] f560c9f4_8dee_e0de_543a_3e1999e5b868["compiler.ts"] 087b3758_d09b_bfe9_7940_1b8d08eca957 -->|defined in| f560c9f4_8dee_e0de_543a_3e1999e5b868 style 087b3758_d09b_bfe9_7940_1b8d08eca957 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