Home / Function/ installSSRHelpers() — vue Function Reference

installSSRHelpers() — vue Function Reference

Architecture documentation for the installSSRHelpers() function in runtime-helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8552678e_3ca0_ab4c_7c93_5001289e67e4["installSSRHelpers()"]
  4c21c903_0357_dce5_cb90_83c67295a504["createRenderFunction()"]
  4c21c903_0357_dce5_cb90_83c67295a504 -->|calls| 8552678e_3ca0_ab4c_7c93_5001289e67e4
  133969d0_a7bd_f1c5_46a3_9fb8fd249583["extend()"]
  8552678e_3ca0_ab4c_7c93_5001289e67e4 -->|calls| 133969d0_a7bd_f1c5_46a3_9fb8fd249583
  style 8552678e_3ca0_ab4c_7c93_5001289e67e4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts lines 31–47

export function installSSRHelpers(vm: Component) {
  if (vm._ssrNode) {
    return
  }
  let Vue = vm.constructor
  // @ts-expect-error
  while (Vue.super) {
    // @ts-expect-error
    Vue = Vue.super
  }
  extend(Vue.prototype, ssrHelpers)
  // @ts-expect-error
  if (Vue.FunctionalRenderContext) {
    // @ts-expect-error
    extend(Vue.FunctionalRenderContext.prototype, ssrHelpers)
  }
}

Subdomains

Calls

Frequently Asked Questions

What does installSSRHelpers() do?
installSSRHelpers() is a function in the vue codebase.
What does installSSRHelpers() call?
installSSRHelpers() calls 1 function(s): extend.
What calls installSSRHelpers()?
installSSRHelpers() is called by 1 function(s): createRenderFunction.

Analyze Your Own Codebase

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

Try Supermodel Free