(path: string | undefined)
| 10 | // Error's source file is reported as file:///home/user/file.js |
| 11 | // This function removes the file://[cwd] part |
| 12 | const cleanupPath = (path: string | undefined): string | undefined => { |
| 13 | return path?.replace(`file://${process.cwd()}/`, ''); |
| 14 | }; |
| 15 | let stackUtils: StackUtils | undefined; |
| 16 | function getStackUtils(): StackUtils { |
| 17 | return stackUtils ??= new StackUtils({ |