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 VueCore Instance calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  26b4ac68_6ee7_2ffb_30a9_a112563a125f["resolveConstructorOptions()"]
  ae790ceb_073b_1bcf_331c_af2d587c1ad6["init.ts"]
  26b4ac68_6ee7_2ffb_30a9_a112563a125f -->|defined in| ae790ceb_073b_1bcf_331c_af2d587c1ad6
  27e71f35_12fd_58cc_25d7_c5686da5aaf6["initMixin()"]
  27e71f35_12fd_58cc_25d7_c5686da5aaf6 -->|calls| 26b4ac68_6ee7_2ffb_30a9_a112563a125f
  58bf3275_e41a_7274_4617_640da298f8c0["resolveModifiedOptions()"]
  26b4ac68_6ee7_2ffb_30a9_a112563a125f -->|calls| 58bf3275_e41a_7274_4617_640da298f8c0
  style 26b4ac68_6ee7_2ffb_30a9_a112563a125f 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