MCPcopy
hub / github.com/vitejs/vite / setupConsoleWarnCollector

Function setupConsoleWarnCollector

playground/lib/__tests__/serve.ts:147–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147function setupConsoleWarnCollector() {
148 const warn = console.warn
149 console.warn = (...args) => {
150 serverLogs.push(args.join(' '))
151 return warn.call(console, ...args)
152 }
153}

Callers 1

serveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected