(s1: string, s2: string)
| 69 | |
| 70 | // Copy from rolldown's packages/rolldown/src/utils/errors.ts |
| 71 | function joinNewLine(s1: string, s2: string): string { |
| 72 | // ensure single new line in between |
| 73 | return s1.replace(/\n+$/, '') + '\n' + s2.replace(/^\n+/, '') |
| 74 | } |
| 75 | |
| 76 | // Copy from rolldown's packages/rolldown/src/utils/errors.ts |
| 77 | function getErrorMessage(e: RolldownError): string { |