(str: string)
| 6 | import { walk } from './ast-utils' |
| 7 | |
| 8 | function escapeForStringLiteral(str: string): string { |
| 9 | return str.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\n/g, '\\n') |
| 10 | } |
| 11 | |
| 12 | export function enhanceConsoleLog(code: string, id: string, port: number) { |
| 13 | const filePath = id.split('?')[0]! |