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:
Evan You
2019-10-21 15:52:29 -04:00
parent a0d570b16d
commit 052febc127
13 changed files with 236 additions and 112 deletions

View File

@@ -488,7 +488,7 @@ export function createRenderer<
}
return // terminal
}
} else if (!optimized) {
} else if (!optimized && dynamicChildren == null) {
// unoptimized, full diff
patchProps(
el,