fix(ssr): fix hydration mismatch caused by multi-line comments inside slot
fix #5355
This commit is contained in:
@@ -82,7 +82,7 @@ export function ssrRenderSlotInner(
|
||||
}
|
||||
}
|
||||
|
||||
const commentRE = /<!--.*?-->/g
|
||||
const commentRE = /<!--[^]*?-->/gm
|
||||
function isComment(item: SSRBufferItem) {
|
||||
return (
|
||||
typeof item === 'string' &&
|
||||
|
||||
Reference in New Issue
Block a user