From 61edb700d7aa9bbefa18013cd47673e25bbfaf82 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 5 May 2021 16:36:16 -0400 Subject: [PATCH] wip: only generate non-scope slot flag when compatConfig is present --- packages/compiler-core/src/transforms/vSlot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-core/src/transforms/vSlot.ts b/packages/compiler-core/src/transforms/vSlot.ts index 0c3b2853..4c249d23 100644 --- a/packages/compiler-core/src/transforms/vSlot.ts +++ b/packages/compiler-core/src/transforms/vSlot.ts @@ -302,7 +302,7 @@ export function buildSlots( children: TemplateChildNode[] ) => { const fn = buildSlotFn(props, children, loc) - if (__COMPAT__) { + if (__COMPAT__ && context.compatConfig) { fn.isNonScopedSlot = true } return createObjectProperty(`default`, fn)