Home / File/ index.ts — vue Source File

index.ts — vue Source File

Architecture documentation for index.ts, a typescript file in the vue codebase. 7 imports, 0 dependents.

File typescript VueCore 7 imports

Entity Profile

Dependency Diagram

graph LR
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52["index.ts"]
  23cfe098_8f89_2c1d_f6c8_39cd03563e3d["index.ts"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> 23cfe098_8f89_2c1d_f6c8_39cd03563e3d
  5b59ecce_a4b5_9791_86b8_be37e2253d73["Vue"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> 5b59ecce_a4b5_9791_86b8_be37e2253d73
  65cf792e_a676_cf99_19ca_1e38df384bdc["index.ts"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> 65cf792e_a676_cf99_19ca_1e38df384bdc
  157a933a_63b7_ebeb_71f9_e11bccd3097b["initGlobalAPI"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> 157a933a_63b7_ebeb_71f9_e11bccd3097b
  1ec7e50f_8f20_0656_28f0_45cecc26cf74["env"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> 1ec7e50f_8f20_0656_28f0_45cecc26cf74
  e3775e97_7e08_0eb0_ce96_2f9c723bef73["create-functional-component"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> e3775e97_7e08_0eb0_ce96_2f9c723bef73
  d970b406_3424_b00e_55dd_82e98ab5aac2["v3"]
  d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 --> d970b406_3424_b00e_55dd_82e98ab5aac2
  style d9076d5f_33d6_6fe7_0a89_2f29fba0fe52 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Vue from './instance/index'
import { initGlobalAPI } from './global-api/index'
import { isServerRendering } from 'core/util/env'
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
import { version } from 'v3'

initGlobalAPI(Vue)

Object.defineProperty(Vue.prototype, '$isServer', {
  get: isServerRendering
})

Object.defineProperty(Vue.prototype, '$ssrContext', {
  get() {
    /* istanbul ignore next */
    return this.$vnode && this.$vnode.ssrContext
  }
})

// expose FunctionalRenderContext for ssr runtime helper installation
Object.defineProperty(Vue, 'FunctionalRenderContext', {
  value: FunctionalRenderContext
})

Vue.version = version

export default Vue

Domain

Dependencies

Frequently Asked Questions

What does index.ts do?
index.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain.
What does index.ts depend on?
index.ts imports 7 module(s): Vue, create-functional-component, env, index.ts, index.ts, initGlobalAPI, v3.
Where is index.ts in the architecture?
index.ts is located at src/core/index.ts (domain: VueCore, directory: src/core).

Analyze Your Own Codebase

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

Try Supermodel Free