|
|
|
@ -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' &&
|
|
|
|
|