Home / Function/ resolveConstructorOptions() — vue Function Reference

resolveConstructorOptions() — vue Function Reference

Architecture documentation for the resolveConstructorOptions() function in init.ts from the vue codebase.

Function typescript CoreRuntime Instance calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  5cf3f4c3_fa41_407a_5974_78bd867200bd["resolveConstructorOptions()"]
  9e587547_0a20_aaaa_ba5c_6103ca27ef79["init.ts"]
  5cf3f4c3_fa41_407a_5974_78bd867200bd -->|defined in| 9e587547_0a20_aaaa_ba5c_6103ca27ef79
  7cb38e61_0473_03dc_2a46_4308c941e8cf["initMixin()"]
  7cb38e61_0473_03dc_2a46_4308c941e8cf -->|calls| 5cf3f4c3_fa41_407a_5974_78bd867200bd
  d272b7ca_3a1c_60ef_8fbd_187debff9cd1["resolveModifiedOptions()"]
  5cf3f4c3_fa41_407a_5974_78bd867200bd -->|calls| d272b7ca_3a1c_60ef_8fbd_187debff9cd1
  style 5cf3f4c3_fa41_407a_5974_78bd867200bd 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

Called By

Frequently Asked Questions

What does resolveConstructorOptions() do?
resolveConstructorOptions() is a function in the vue codebase, defined in src/core/instance/init.ts.
Where is resolveConstructorOptions() defined?
resolveConstructorOptions() is defined in src/core/instance/init.ts at line 106.
What does resolveConstructorOptions() call?
resolveConstructorOptions() calls 1 function(s): resolveModifiedOptions.
What calls resolveConstructorOptions()?
resolveConstructorOptions() is called by 1 function(s): initMixin.

Analyze Your Own Codebase

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

Try Supermodel Free