Home / File/ config.ts — vue Source File

config.ts — vue Source File

Architecture documentation for config.ts, a typescript file in the vue codebase. 3 imports, 11 dependents.

File typescript VueCore Observer 3 imports 11 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  81a11719_3457_ecad_7c86_c586d804debb["config.ts"]
  09aa5370_2caa_6b33_3f44_6ac5211bd11b["util"]
  81a11719_3457_ecad_7c86_c586d804debb --> 09aa5370_2caa_6b33_3f44_6ac5211bd11b
  ab8fc425_80ef_461f_288a_985447c26d02["constants"]
  81a11719_3457_ecad_7c86_c586d804debb --> ab8fc425_80ef_461f_288a_985447c26d02
  64c87498_c46a_6944_ab9d_8e45519852a8["component"]
  81a11719_3457_ecad_7c86_c586d804debb --> 64c87498_c46a_6944_ab9d_8e45519852a8
  65cf792e_a676_cf99_19ca_1e38df384bdc["index.ts"]
  65cf792e_a676_cf99_19ca_1e38df384bdc --> 81a11719_3457_ecad_7c86_c586d804debb
  ae790ceb_073b_1bcf_331c_af2d587c1ad6["init.ts"]
  ae790ceb_073b_1bcf_331c_af2d587c1ad6 --> 81a11719_3457_ecad_7c86_c586d804debb
  d937f76e_061f_a631_9587_336503c9a15c["lifecycle.ts"]
  d937f76e_061f_a631_9587_336503c9a15c --> 81a11719_3457_ecad_7c86_c586d804debb
  079339bc_f0ce_0fd0_3d1b_26a2dc073616["state.ts"]
  079339bc_f0ce_0fd0_3d1b_26a2dc073616 --> 81a11719_3457_ecad_7c86_c586d804debb
  e5c4d6ab_2495_a6d4_d962_9d9f71bf3114["dep.ts"]
  e5c4d6ab_2495_a6d4_d962_9d9f71bf3114 --> 81a11719_3457_ecad_7c86_c586d804debb
  36c7708b_24b4_08c9_e39f_50f332a4b206["scheduler.ts"]
  36c7708b_24b4_08c9_e39f_50f332a4b206 --> 81a11719_3457_ecad_7c86_c586d804debb
  4be43750_5259_d6e1_902d_9b3e2df2b9c4["debug.ts"]
  4be43750_5259_d6e1_902d_9b3e2df2b9c4 --> 81a11719_3457_ecad_7c86_c586d804debb
  88dc54e4_4a50_ce50_5fb5_52118613323e["error.ts"]
  88dc54e4_4a50_ce50_5fb5_52118613323e --> 81a11719_3457_ecad_7c86_c586d804debb
  395cc6b0_6f88_f1b1_f5dd_8cdf5c229777["options.ts"]
  395cc6b0_6f88_f1b1_f5dd_8cdf5c229777 --> 81a11719_3457_ecad_7c86_c586d804debb
  4b23edff_adcb_6cfb_ca7d_b6d38b4a1921["create-element.ts"]
  4b23edff_adcb_6cfb_ca7d_b6d38b4a1921 --> 81a11719_3457_ecad_7c86_c586d804debb
  020681fa_600e_5c84_6a4e_f1289077cc78["patch.ts"]
  020681fa_600e_5c84_6a4e_f1289077cc78 --> 81a11719_3457_ecad_7c86_c586d804debb
  style 81a11719_3457_ecad_7c86_c586d804debb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { no, noop, identity } from 'shared/util'

import { LIFECYCLE_HOOKS } from 'shared/constants'
import type { Component } from 'types/component'

/**
 * @internal
 */
export interface Config {
  // user
  optionMergeStrategies: { [key: string]: Function }
  silent: boolean
  productionTip: boolean
  performance: boolean
  devtools: boolean
  errorHandler?: (err: Error, vm: Component | null, info: string) => void
  warnHandler?: (msg: string, vm: Component | null, trace: string) => void
  ignoredElements: Array<string | RegExp>
  keyCodes: { [key: string]: number | Array<number> }

  // platform
  isReservedTag: (x: string) => boolean | undefined
  isReservedAttr: (x: string) => true | undefined
  parsePlatformTagName: (x: string) => string
  isUnknownElement: (x: string) => boolean
  getTagNamespace: (x: string) => string | undefined
  mustUseProp: (tag: string, type?: string | null, name?: string) => boolean

  // private
  async: boolean

  // legacy
  _lifecycleHooks: Array<string>
}

export default {
  /**
   * Option merge strategies (used in core/util/options)
   */
  // $flow-disable-line
  optionMergeStrategies: Object.create(null),

  /**
   * Whether to suppress warnings.
   */
  silent: false,

  /**
   * Show production mode tip message on boot?
   */
  productionTip: __DEV__,

  /**
   * Whether to enable devtools
   */
  devtools: __DEV__,

  /**
   * Whether to record perf
   */
// ... (69 more lines)

Domain

Subdomains

Functions

Types

Dependencies

  • component
  • constants
  • util

Frequently Asked Questions

What does config.ts do?
config.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, Observer subdomain.
What functions are defined in config.ts?
config.ts defines 4 function(s): err, msg, tag, x.
What does config.ts depend on?
config.ts imports 3 module(s): component, constants, util.
What files import config.ts?
config.ts is imported by 11 file(s): create-element.ts, debug.ts, dep.ts, error.ts, index.ts, init.ts, lifecycle.ts, options.ts, and 3 more.
Where is config.ts in the architecture?
config.ts is located at src/core/config.ts (domain: VueCore, subdomain: Observer, directory: src/core).

Analyze Your Own Codebase

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

Try Supermodel Free