feat(compiler): convert text mixed with elements into createVNode calls
This ensures they are tracked as dynamic children when inside blocks. Also guaruntees compiled vnodes always have vnode children in arrays so that they can skip normalizeVNode safely in optimized mode.
This commit is contained in:
@@ -488,7 +488,7 @@ export function createRenderer<
|
||||
}
|
||||
return // terminal
|
||||
}
|
||||
} else if (!optimized) {
|
||||
} else if (!optimized && dynamicChildren == null) {
|
||||
// unoptimized, full diff
|
||||
patchProps(
|
||||
el,
|
||||
|
||||
Reference in New Issue
Block a user