From 100fbbf05f7ca99a76c0e4aad08ad29ab6fe1087 Mon Sep 17 00:00:00 2001 From: paoloricciuti Date: Tue, 31 Mar 2026 09:19:35 +0200 Subject: [PATCH] fix: conditional invocation --- packages/svelte/src/compiler/phases/2-analyze/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/compiler/phases/2-analyze/index.js b/packages/svelte/src/compiler/phases/2-analyze/index.js index 946ac578c5..6dce87bb99 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/index.js +++ b/packages/svelte/src/compiler/phases/2-analyze/index.js @@ -467,7 +467,7 @@ export function analyze_component(root, source, options) { const custom_element_from_option = options.customElement({ filename: options.filename }); const css = options.css({ filename: options.filename }); - const custom_renderer = options.experimental.customRenderer({ filename: options.filename }); + const custom_renderer = options.experimental.customRenderer?.({ filename: options.filename }); const custom_element = options.customElementOptions ?? custom_element_from_option; const is_custom_element = !!options.customElementOptions || custom_element_from_option;