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

Class HMRMockLogger

playground/hmr-ssr/__tests__/hmr-ssr.spec.ts:1170–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1168}
1169
1170class HMRMockLogger {
1171 log(...msg: unknown[]) {
1172 const log = msg.join(' ')
1173 clientLogs.push(log)
1174 logsEmitter.emit('log', log)
1175 }
1176
1177 debug(...msg: unknown[]) {
1178 const log = ['[vite]', ...msg].join(' ')
1179 clientLogs.push(log)
1180 logsEmitter.emit('log', log)
1181 }
1182 error(msg: string) {
1183 const log = ['[vite]', msg].join(' ')
1184 clientLogs.push(log)
1185 logsEmitter.emit('log', log)
1186 }
1187}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected