Skip to content

Commit c7c1743

Browse files
authored
fix(client): render the last part of the stacktrace (vitejs#20039)
1 parent d101d64 commit c7c1743

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/vite/src/client/overlay.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ export class ErrorOverlay extends HTMLElement {
280280
el.appendChild(link)
281281
curIndex += frag.length + file.length
282282
}
283+
if (curIndex < text.length) {
284+
el.appendChild(document.createTextNode(text.slice(curIndex)))
285+
}
283286
}
284287
}
285288
close(): void {

0 commit comments

Comments
 (0)