warnOnce() — vue Function Reference
Architecture documentation for the warnOnce() function in warn.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 6364246b_4ca9_9d10_2feb_edc16524fcfd["warnOnce()"] 1511bfca_4880_700d_193d_8660402396c3["warn.ts"] 6364246b_4ca9_9d10_2feb_edc16524fcfd -->|defined in| 1511bfca_4880_700d_193d_8660402396c3 6195696d_b4e9_b5d7_3dd5_1966a03d855f["compileScript()"] 6195696d_b4e9_b5d7_3dd5_1966a03d855f -->|calls| 6364246b_4ca9_9d10_2feb_edc16524fcfd 19d3061a_cec5_456e_f79a_305199ce32a7["warn()"] 6364246b_4ca9_9d10_2feb_edc16524fcfd -->|calls| 19d3061a_cec5_456e_f79a_305199ce32a7 style 6364246b_4ca9_9d10_2feb_edc16524fcfd 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