Home / Function/ warnOnce() — vue Function Reference

warnOnce() — vue Function Reference

Architecture documentation for the warnOnce() function in warn.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  e0d105a1_9025_aba1_042f_43ea81663586["warnOnce()"]
  af57cd20_c4ce_0877_c02c_52056ca04d4a["compileScript()"]
  af57cd20_c4ce_0877_c02c_52056ca04d4a -->|calls| e0d105a1_9025_aba1_042f_43ea81663586
  ebfb9ce8_9cf8_d198_35e1_0cd388232711["warn()"]
  e0d105a1_9025_aba1_042f_43ea81663586 -->|calls| ebfb9ce8_9cf8_d198_35e1_0cd388232711
  style e0d105a1_9025_aba1_042f_43ea81663586 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/warn.ts lines 3–10

export function warnOnce(msg: string) {
  const isNodeProd =
    typeof process !== 'undefined' && process.env.NODE_ENV === 'production'
  if (!isNodeProd && !hasWarned[msg]) {
    hasWarned[msg] = true
    warn(msg)
  }
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does warnOnce() do?
warnOnce() is a function in the vue codebase.
What does warnOnce() call?
warnOnce() calls 1 function(s): warn.
What calls warnOnce()?
warnOnce() is called by 1 function(s): compileScript.

Analyze Your Own Codebase

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

Try Supermodel Free