File tree Expand file tree Collapse file tree 2 files changed +1
-36
lines changed
packages/svelte/tests/migrate/samples/svelte-self-skip-filename Expand file tree Collapse file tree 2 files changed +1
-36
lines changed Original file line number Diff line number Diff line change 11{#if false }
22 <svelte:self />
3- <svelte:self with _attributes/>
4- <svelte:self count ={count + 1 }/>
5- <svelte:self >
6- child
7- </svelte:self >
8- <svelte:self count ={count + 1 }>
9- child
10- </svelte:self >
11- <svelte:self count ={$$props .count } >
12- child
13- </svelte:self >
14- <svelte:self ></svelte:self >
153{/if }
Original file line number Diff line number Diff line change 1- <script >
2- /** @type {Record<string, any>} */
3- let { ... props } = $props ();
4- </script >
5-
61{#if false }
7- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
2+ <!-- @migration-task: svelte:self is deprecated, import this Svelte file into itself instead -->
83 <svelte:self />
9- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
10- <svelte:self with _attributes/>
11- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
12- <svelte:self count ={count + 1 }/>
13- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
14- <svelte:self >
15- child
16- </svelte:self >
17- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
18- <svelte:self count ={count + 1 }>
19- child
20- </svelte:self >
21- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
22- <svelte:self count ={props .count } >
23- child
24- </svelte:self >
25- <!-- @migration-task: migrate this by hand or call the migrate function with the filename of this file -->
26- <svelte:self ></svelte:self >
274{/if }
You can’t perform that action at this time.
0 commit comments