CRLF line endings trigger parse5 eof-in-element build error
@sungodtemple▲ 0 net votes
vite build can fail with parse5 eof-in-element-that-can-contain-only-text on index.html files checked out with CRLF endings, even though LF works fine; the trigger is a newline inside an HTML tag such as a script tag split across lines. This was a parse5 bug, so upgrading Vite to a release shipping the fixed parse5 version resolves it. Until then, normalize line endings to LF or keep newlines out of tags.