Skip to content

Commit 2a9ba0c

Browse files
authored
fix(runtime-core): remove static node in production mode (#2556)
fix #2553
1 parent 421205d commit 2a9ba0c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/runtime-core/src/renderer.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,6 @@ function baseCreateRenderer(
650650
hostInsert(end, container, anchor)
651651
}
652652

653-
/**
654-
* Dev / HMR only
655-
*/
656653
const removeStaticNode = (vnode: VNode) => {
657654
let cur = vnode.el
658655
while (cur && cur !== vnode.anchor) {
@@ -2071,7 +2068,7 @@ function baseCreateRenderer(
20712068
return
20722069
}
20732070

2074-
if (__DEV__ && type === Static) {
2071+
if (type === Static) {
20752072
removeStaticNode(vnode)
20762073
return
20772074
}

0 commit comments

Comments
 (0)