* Esbuild code frames have newlines at the start and end of the frame, rollup doesn't * This function normalizes the frame to match the esbuild format which has more pleasing padding
(frame: string)
| 976 | * This function normalizes the frame to match the esbuild format which has more pleasing padding |
| 977 | */ |
| 978 | function normalizeCodeFrame(frame: string) { |
| 979 | const trimmedPadding = frame.replace(/^\n|\n$/g, '') |
| 980 | return `\n${trimmedPadding}\n` |
| 981 | } |
| 982 | |
| 983 | type JsExt = 'js' | 'cjs' | 'mjs' |
| 984 |
no outgoing calls
no test coverage detected