diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index 98cdc021..25e80821 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -232,7 +232,10 @@ export function createVNode( return vnode } -export function cloneVNode(vnode: VNode, extraProps?: Data): VNode { +export function cloneVNode( + vnode: VNode, + extraProps?: Data +): VNode { // This is intentionally NOT using spread or extend to avoid the runtime // key enumeration cost. return { @@ -279,7 +282,7 @@ export function createCommentVNode( : createVNode(Comment, null, text) } -export function normalizeVNode(child: VNodeChild): VNode { +export function normalizeVNode(child: VNodeChild): VNode { if (child == null) { // empty placeholder return createVNode(Comment)