Skip to content

Commit 26dc571

Browse files
committed
fix(slots): refine condition to avoid copying compile marker
1 parent 347ef1d commit 26dc571

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-core/src/componentSlots.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export type RawSlots = {
8686
__?: number[]
8787
}
8888

89-
const isInternalKey = (key: string) => key[0] === '_' || key === '$stable'
89+
const isInternalKey = (key: string) =>
90+
key[0] === '_' || key[0] === '__' || key === '$stable'
9091

9192
const normalizeSlotValue = (value: unknown): VNode[] =>
9293
isArray(value)

0 commit comments

Comments
 (0)