MCPcopy
hub / github.com/vitejs/vite / joinNewLine

Function joinNewLine

packages/vite/src/node/plugins/oxc.ts:71–74  ·  view source on GitHub ↗
(s1: string, s2: string)

Source from the content-addressed store, hash-verified

69
70// Copy from rolldown's packages/rolldown/src/utils/errors.ts
71function 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
77function getErrorMessage(e: RolldownError): string {

Callers 1

getErrorMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected