warnOnce() — vue Function Reference
Architecture documentation for the warnOnce() function in warn.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD e49b037f_d27b_861a_74e2_10d6a15d0ca4["warnOnce()"] 4737f55f_f5f5_3f4a_4740_cc6b9e6f750a["warn.ts"] e49b037f_d27b_861a_74e2_10d6a15d0ca4 -->|defined in| 4737f55f_f5f5_3f4a_4740_cc6b9e6f750a 4dff3da5_c3f4_4303_7989_1d16ed3f091d["compileScript()"] 4dff3da5_c3f4_4303_7989_1d16ed3f091d -->|calls| e49b037f_d27b_861a_74e2_10d6a15d0ca4 26fb4426_4cdb_bc95_e35e_df2799ebb54e["warn()"] e49b037f_d27b_861a_74e2_10d6a15d0ca4 -->|calls| 26fb4426_4cdb_bc95_e35e_df2799ebb54e style e49b037f_d27b_861a_74e2_10d6a15d0ca4 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
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does warnOnce() do?
warnOnce() is a function in the vue codebase, defined in packages/compiler-sfc/src/warn.ts.
Where is warnOnce() defined?
warnOnce() is defined in packages/compiler-sfc/src/warn.ts at line 3.
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