"const _Vue = Vue
const { createVNode: _createVNode } = _Vue
-const _hoisted_1 = _createVNode(\\"div\\", { key: \\"foo\\" })
+const _hoisted_1 = _createVNode(\\"div\\", { key: \\"foo\\" }, null, -1)
return function render(_ctx, _cache) {
with (this) {
const _hoisted_1 = _createVNode(\\"p\\", null, [
_createVNode(\\"span\\"),
_createVNode(\\"span\\")
-])
+], -1)
return function render(_ctx, _cache) {
with (this) {
const _hoisted_1 = _createVNode(\\"div\\", null, [
_createCommentVNode(\\"comment\\")
-])
+], -1)
return function render(_ctx, _cache) {
with (this) {
"const _Vue = Vue
const { createVNode: _createVNode } = _Vue
-const _hoisted_1 = _createVNode(\\"span\\")
-const _hoisted_2 = _createVNode(\\"div\\")
+const _hoisted_1 = _createVNode(\\"span\\", null, null, -1)
+const _hoisted_2 = _createVNode(\\"div\\", null, null, -1)
return function render(_ctx, _cache) {
with (this) {
"const _Vue = Vue
const { createVNode: _createVNode } = _Vue
-const _hoisted_1 = _createVNode(\\"span\\", { class: \\"inline\\" }, \\"hello\\")
+const _hoisted_1 = _createVNode(\\"span\\", { class: \\"inline\\" }, \\"hello\\", -1)
return function render(_ctx, _cache) {
with (this) {
"const _Vue = Vue
const { createVNode: _createVNode } = _Vue
-const _hoisted_1 = _createVNode(\\"span\\", null, \\"foo \\" + _toDisplayString(1) + \\" \\" + _toDisplayString(true))
+const _hoisted_1 = _createVNode(\\"span\\", null, \\"foo \\" + _toDisplayString(1) + \\" \\" + _toDisplayString(true), -1)
return function render(_ctx, _cache) {
with (this) {
"const _Vue = Vue
const { createVNode: _createVNode } = _Vue
-const _hoisted_1 = _createVNode(\\"span\\", { foo: 0 }, _toDisplayString(1))
+const _hoisted_1 = _createVNode(\\"span\\", { foo: 0 }, _toDisplayString(1), -1)
return function render(_ctx, _cache) {
with (this) {
const { createVNode: _createVNode } = _Vue
const _hoisted_1 = { id: \\"foo\\" }
-const _hoisted_2 = _createVNode(\\"span\\")
+const _hoisted_2 = _createVNode(\\"span\\", null, null, -1)
return function render(_ctx, _cache) {
with (this) {
key: 0,
id: \\"foo\\"
}
-const _hoisted_2 = _createVNode(\\"span\\")
+const _hoisted_2 = _createVNode(\\"span\\", null, null, -1)
return function render(_ctx, _cache) {
with (this) {
optimized: boolean
) {
let el: HostElement
- const { type, props, shapeFlag, transition, scopeId } = vnode
- if (vnode.el != null && hostCloneNode !== undefined) {
+ const { type, props, shapeFlag, transition, scopeId, patchFlag } = vnode
+ if (
+ vnode.el !== null &&
+ hostCloneNode !== undefined &&
+ patchFlag === PatchFlags.HOISTED
+ ) {
// If a vnode has non-null el, it means it's being reused.
// Only static vnodes can be reused, so its mounted DOM nodes should be
// exactly the same, and we can simply do a clone here.