setupConsoleWarnCollector() — vite Function Reference
Architecture documentation for the setupConsoleWarnCollector() function in serve.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 349580dc_2cf4_270a_24b1_7820936a649b["setupConsoleWarnCollector()"] 69787096_db2c_92e4_449c_afb1439f9f27["serve.ts"] 349580dc_2cf4_270a_24b1_7820936a649b -->|defined in| 69787096_db2c_92e4_449c_afb1439f9f27 bda7366d_bfdd_9089_3913_50d119a4ba09["serve()"] bda7366d_bfdd_9089_3913_50d119a4ba09 -->|calls| 349580dc_2cf4_270a_24b1_7820936a649b style 349580dc_2cf4_270a_24b1_7820936a649b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/lib/__tests__/serve.ts lines 147–153
function setupConsoleWarnCollector() {
const warn = console.warn
console.warn = (...args) => {
serverLogs.push(args.join(' '))
return warn.call(console, ...args)
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does setupConsoleWarnCollector() do?
setupConsoleWarnCollector() is a function in the vite codebase, defined in playground/lib/__tests__/serve.ts.
Where is setupConsoleWarnCollector() defined?
setupConsoleWarnCollector() is defined in playground/lib/__tests__/serve.ts at line 147.
What calls setupConsoleWarnCollector()?
setupConsoleWarnCollector() is called by 1 function(s): serve.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free