resolveConstructorOptions() — vue Function Reference
Architecture documentation for the resolveConstructorOptions() function in init.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 5a00b29c_e806_9a99_22cb_4a0080592a1a["resolveConstructorOptions()"] ad112c37_faea_8798_03f1_18e1a6303f0d["initMixin()"] ad112c37_faea_8798_03f1_18e1a6303f0d -->|calls| 5a00b29c_e806_9a99_22cb_4a0080592a1a 97ceaa96_dc73_11db_99c0_3dfa1b31b53f["createComponent()"] 97ceaa96_dc73_11db_99c0_3dfa1b31b53f -->|calls| 5a00b29c_e806_9a99_22cb_4a0080592a1a a77265bc_d9f8_272b_e8e4_fd69b3714515["resolveModifiedOptions()"] 5a00b29c_e806_9a99_22cb_4a0080592a1a -->|calls| a77265bc_d9f8_272b_e8e4_fd69b3714515 style 5a00b29c_e806_9a99_22cb_4a0080592a1a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/instance/init.ts lines 106–128
export function resolveConstructorOptions(Ctor: typeof Component) {
let options = Ctor.options
if (Ctor.super) {
const superOptions = resolveConstructorOptions(Ctor.super)
const cachedSuperOptions = Ctor.superOptions
if (superOptions !== cachedSuperOptions) {
// super option changed,
// need to resolve new options.
Ctor.superOptions = superOptions
// check if there are any late-modified/attached options (#4976)
const modifiedOptions = resolveModifiedOptions(Ctor)
// update base extend options
if (modifiedOptions) {
extend(Ctor.extendOptions, modifiedOptions)
}
options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions)
if (options.name) {
options.components[options.name] = Ctor
}
}
}
return options
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does resolveConstructorOptions() do?
resolveConstructorOptions() is a function in the vue codebase.
What does resolveConstructorOptions() call?
resolveConstructorOptions() calls 1 function(s): resolveModifiedOptions.
What calls resolveConstructorOptions()?
resolveConstructorOptions() is called by 2 function(s): createComponent, initMixin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free