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
  f5504226_ec28_d9d9_c958_5adf18df5774["isUnOptimizableTree()"]
  bdccaa53_ff26_818d_5799_6f5b50228230["walk()"]
  bdccaa53_ff26_818d_5799_6f5b50228230 -->|calls| f5504226_ec28_d9d9_c958_5adf18df5774
  bb89d33b_80db_e4ae_8c60_98937174b233["isSelectWithModel()"]
  f5504226_ec28_d9d9_c958_5adf18df5774 -->|calls| bb89d33b_80db_e4ae_8c60_98937174b233
  style f5504226_ec28_d9d9_c958_5adf18df5774 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.
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