mirror of https://github.com/sveltejs/svelte
fix: use `analysis.name` when migrating `<svelte:self>` (#13544)
* fix: use `analysis.name` when migrating `<svelte:self>` * simplifypull/13444/merge
parent
2f6d84ab6b
commit
a0a31ed0d0
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: use `analysis.name` when migrating `<svelte:self>`
|
@ -1,22 +1,22 @@
|
|||||||
<script>
|
<script>
|
||||||
import SvelteSelf_1 from './output.svelte';
|
import Output_1 from './output.svelte';
|
||||||
/** @type {Record<string, any>} */
|
/** @type {Record<string, any>} */
|
||||||
let { ...props } = $props();
|
let { ...props } = $props();
|
||||||
let SvelteSelf;
|
let Output;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if false}
|
{#if false}
|
||||||
<SvelteSelf_1 />
|
<Output_1 />
|
||||||
<SvelteSelf_1 with_attributes/>
|
<Output_1 with_attributes/>
|
||||||
<SvelteSelf_1 count={count+1}/>
|
<Output_1 count={count+1}/>
|
||||||
<SvelteSelf_1>
|
<Output_1>
|
||||||
child
|
child
|
||||||
</SvelteSelf_1>
|
</Output_1>
|
||||||
<SvelteSelf_1 count={count+1}>
|
<Output_1 count={count+1}>
|
||||||
child
|
child
|
||||||
</SvelteSelf_1>
|
</Output_1>
|
||||||
<SvelteSelf_1 count={props.count} >
|
<Output_1 count={props.count} >
|
||||||
child
|
child
|
||||||
</SvelteSelf_1>
|
</Output_1>
|
||||||
<SvelteSelf_1></SvelteSelf_1>
|
<Output_1></Output_1>
|
||||||
{/if}
|
{/if}
|
@ -1,21 +1,21 @@
|
|||||||
<script>
|
<script>
|
||||||
import SvelteSelf from './output.svelte';
|
import Output from './output.svelte';
|
||||||
/** @type {Record<string, any>} */
|
/** @type {Record<string, any>} */
|
||||||
let { ...props } = $props();
|
let { ...props } = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if false}
|
{#if false}
|
||||||
<SvelteSelf />
|
<Output />
|
||||||
<SvelteSelf with_attributes/>
|
<Output with_attributes/>
|
||||||
<SvelteSelf count={count+1}/>
|
<Output count={count+1}/>
|
||||||
<SvelteSelf>
|
<Output>
|
||||||
child
|
child
|
||||||
</SvelteSelf>
|
</Output>
|
||||||
<SvelteSelf count={count+1}>
|
<Output count={count+1}>
|
||||||
child
|
child
|
||||||
</SvelteSelf>
|
</Output>
|
||||||
<SvelteSelf count={props.count} >
|
<Output count={props.count} >
|
||||||
child
|
child
|
||||||
</SvelteSelf>
|
</Output>
|
||||||
<SvelteSelf></SvelteSelf>
|
<Output></Output>
|
||||||
{/if}
|
{/if}
|
Loading…
Reference in new issue