mirror of https://github.com/sveltejs/svelte
feat: deprecate `<svelte:self>` in runes mode (#13333)
* feat: deprecate `<svelte:self>` in runes mode * fixpull/13336/head
parent
313bcea6cc
commit
d6ab12ae76
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: deprecate `<svelte:self>` in runes mode
|
@ -0,0 +1,10 @@
|
||||
<script>
|
||||
let { n = 5 } = $props();
|
||||
</script>
|
||||
|
||||
{#if n === 0}
|
||||
<p>lift-off!</p>
|
||||
{:else}
|
||||
<p>{n}</p>
|
||||
<svelte:self n={n - 1} />
|
||||
{/if}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "svelte_self_deprecated",
|
||||
"message": "`<svelte:self>` is deprecated — use self-imports (e.g. `import Self from './Self.svelte'`) instead",
|
||||
"start": {
|
||||
"line": 9,
|
||||
"column": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 26
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in new issue