Skip to content

Commit 74cb6d8

Browse files
authored
chore : remove spread operator
1 parent 77f5d44 commit 74cb6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-core/src/transforms/transformElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const transformElement: NodeTransform = (node, context) => {
146146

147147
// children
148148
if (node.children.length > 0) {
149-
let filterdChildren = [...node.children]
149+
let filterdChildren = node.children
150150
if (vnodeTag === KEEP_ALIVE) {
151151
// Although a built-in component, we compile KeepAlive with raw children
152152
// instead of slot functions so that it can be used inside Transition

0 commit comments

Comments
 (0)