Home / Function/ normalizeRender() — vue Function Reference

normalizeRender() — vue Function Reference

Architecture documentation for the normalizeRender() function in render.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  c9350833_548a_8bf0_2285_11ffe157d7aa["normalizeRender()"]
  cbb765a5_16f2_d102_c691_156f282d3846["renderComponentInner()"]
  cbb765a5_16f2_d102_c691_156f282d3846 -->|calls| c9350833_548a_8bf0_2285_11ffe157d7aa
  4c21c903_0357_dce5_cb90_83c67295a504["createRenderFunction()"]
  4c21c903_0357_dce5_cb90_83c67295a504 -->|calls| c9350833_548a_8bf0_2285_11ffe157d7aa
  299f2646_f776_9b7d_1179_7b9087b1e66c["isUndef()"]
  c9350833_548a_8bf0_2285_11ffe157d7aa -->|calls| 299f2646_f776_9b7d_1179_7b9087b1e66c
  style c9350833_548a_8bf0_2285_11ffe157d7aa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/render.ts lines 33–56

const normalizeRender = vm => {
  const { render, template, _scopeId } = vm.$options
  if (isUndef(render)) {
    if (template) {
      const compiled = ssrCompileToFunctions(
        template,
        {
          scopeId: _scopeId,
          warn: onCompilationError
        },
        vm
      )

      vm.$options.render = compiled.render
      vm.$options.staticRenderFns = compiled.staticRenderFns
    } else {
      throw new Error(
        `render function or template not defined in component: ${
          vm.$options.name || vm.$options._componentTag || 'anonymous'
        }`
      )
    }
  }
}

Subdomains

Calls

Frequently Asked Questions

What does normalizeRender() do?
normalizeRender() is a function in the vue codebase.
What does normalizeRender() call?
normalizeRender() calls 1 function(s): isUndef.
What calls normalizeRender()?
normalizeRender() is called by 2 function(s): createRenderFunction, renderComponentInner.

Analyze Your Own Codebase

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

Try Supermodel Free