| 1168 | } |
| 1169 | |
| 1170 | class 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected