Home / Function/ isUnOptimizableTree() — vue Function Reference

isUnOptimizableTree() — vue Function Reference

Architecture documentation for the isUnOptimizableTree() function in optimizer.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  519e4825_7a68_874e_affd_c57b811eeb71["isUnOptimizableTree()"]
  b7ef6faa_d112_ca70_98b8_d353bda5bfe0["optimizer.ts"]
  519e4825_7a68_874e_affd_c57b811eeb71 -->|defined in| b7ef6faa_d112_ca70_98b8_d353bda5bfe0
  e0234097_5b82_4120_05bc_3e7af5090c92["walk()"]
  e0234097_5b82_4120_05bc_3e7af5090c92 -->|calls| 519e4825_7a68_874e_affd_c57b811eeb71
  c9ebacbd_e5c9_49df_84e4_12124a83c633["isSelectWithModel()"]
  519e4825_7a68_874e_affd_c57b811eeb71 -->|calls| c9ebacbd_e5c9_49df_84e4_12124a83c633
  style 519e4825_7a68_874e_affd_c57b811eeb71 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/optimizer.ts lines 110–121

function isUnOptimizableTree(node: ASTNode): boolean {
  if (node.type === 2 || node.type === 3) {
    // text or expression
    return false
  }
  return (
    isBuiltInTag(node.tag) || // built-in (slot, component)
    !isPlatformReservedTag(node.tag) || // custom component
    !!node.component || // "is" component
    isSelectWithModel(node) // <select v-model> requires runtime inspection
  )
}

Subdomains

Called By

Frequently Asked Questions

What does isUnOptimizableTree() do?
isUnOptimizableTree() is a function in the vue codebase, defined in packages/server-renderer/src/optimizing-compiler/optimizer.ts.
Where is isUnOptimizableTree() defined?
isUnOptimizableTree() is defined in packages/server-renderer/src/optimizing-compiler/optimizer.ts at line 110.
What does isUnOptimizableTree() call?
isUnOptimizableTree() calls 1 function(s): isSelectWithModel.
What calls isUnOptimizableTree()?
isUnOptimizableTree() is called by 1 function(s): walk.

Analyze Your Own Codebase

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

Try Supermodel Free