From c4cb28b433a7584b729263b2fcc2a2e7446b6e6d Mon Sep 17 00:00:00 2001 From: John Jenkins Date: Thu, 28 Nov 2024 15:26:20 +0000 Subject: [PATCH] fix: stop 'experimentalScopedSlotChanges' warning msg on startup --- src/compiler/config/validate-config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/config/validate-config.ts b/src/compiler/config/validate-config.ts index 364811a9427..18e3a949b81 100644 --- a/src/compiler/config/validate-config.ts +++ b/src/compiler/config/validate-config.ts @@ -150,8 +150,6 @@ export const validateConfig = ( validatedConfig.extras.scriptDataOpts = !!validatedConfig.extras.scriptDataOpts; validatedConfig.extras.initializeNextTick = !!validatedConfig.extras.initializeNextTick; validatedConfig.extras.tagNameTransform = !!validatedConfig.extras.tagNameTransform; - // TODO(STENCIL-1086): remove this option when it's the default behavior - validatedConfig.extras.experimentalScopedSlotChanges = !!validatedConfig.extras.experimentalScopedSlotChanges; // TODO(STENCIL-914): remove when `experimentalSlotFixes` is the default behavior // If the user set `experimentalSlotFixes` and any individual slot fix flags to `false`, we need to log a warning @@ -181,11 +179,14 @@ export const validateConfig = ( validatedConfig.extras.cloneNodeFix = true; validatedConfig.extras.slotChildNodesFix = true; validatedConfig.extras.scopedSlotTextContentFix = true; + validatedConfig.extras.experimentalScopedSlotChanges = true; } else { validatedConfig.extras.appendChildSlotFix = !!validatedConfig.extras.appendChildSlotFix; validatedConfig.extras.cloneNodeFix = !!validatedConfig.extras.cloneNodeFix; validatedConfig.extras.slotChildNodesFix = !!validatedConfig.extras.slotChildNodesFix; validatedConfig.extras.scopedSlotTextContentFix = !!validatedConfig.extras.scopedSlotTextContentFix; + // TODO(STENCIL-1086): remove this option when it's the default behavior + validatedConfig.extras.experimentalScopedSlotChanges = !!validatedConfig.extras.experimentalScopedSlotChanges; } setBooleanConfig(