From 95e41205b235b30d39f13c5d315f73beaebfffd2 Mon Sep 17 00:00:00 2001 From: daiwei Date: Thu, 10 Jul 2025 22:34:44 +0800 Subject: [PATCH] fix(slots): refine condition to avoid copying compile marker --- packages/runtime-core/src/componentSlots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentSlots.ts b/packages/runtime-core/src/componentSlots.ts index 6114f6c86cf..285f1e17ce9 100644 --- a/packages/runtime-core/src/componentSlots.ts +++ b/packages/runtime-core/src/componentSlots.ts @@ -180,7 +180,7 @@ const assignSlots = ( // when rendering the optimized slots by manually written render function, // do not copy the `slots._` compiler flag so that `renderSlot` creates // slot Fragment with BAIL patchFlag to force full updates - if (optimized || !isInternalKey(key)) { + if (optimized || (key !== '_' && key !== '__')) { slots[key] = children[key] } }