note to self

pull/11387/head
Rich Harris 2 years ago
parent 4fe8ea4671
commit 53eaa4ae22

@ -1439,6 +1439,8 @@ const common_visitors = {
SvelteElement(node, context) { SvelteElement(node, context) {
context.state.analysis.elements.push(node); context.state.analysis.elements.push(node);
// TODO why are we handling the `<svelte:element this="x" />` case? there is no
// reason for someone to use a static value with `<svelte:element>`
if ( if (
context.state.options.namespace !== 'foreign' && context.state.options.namespace !== 'foreign' &&
node.tag.type === 'Literal' && node.tag.type === 'Literal' &&

Loading…
Cancel
Save