From 53eaa4ae22f196eb6f74472961b413db2fd888e0 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 30 Apr 2024 15:28:44 -0400 Subject: [PATCH] note to self --- packages/svelte/src/compiler/phases/2-analyze/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/svelte/src/compiler/phases/2-analyze/index.js b/packages/svelte/src/compiler/phases/2-analyze/index.js index 579c4fbf3a..7a55c575ff 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/index.js +++ b/packages/svelte/src/compiler/phases/2-analyze/index.js @@ -1439,6 +1439,8 @@ const common_visitors = { SvelteElement(node, context) { context.state.analysis.elements.push(node); + // TODO why are we handling the `` case? there is no + // reason for someone to use a static value with `` if ( context.state.options.namespace !== 'foreign' && node.tag.type === 'Literal' &&