mirror of https://github.com/sveltejs/svelte
feat: deprecate `svelte:component` (#12694)
* feat: deprecate `svelte:component` Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com> * move logic into the visitor * tweak docs --------- Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com> Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/12805/head
parent
9a67ab15da
commit
cbcd7617c4
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: deprecate `svelte:component`
|
@ -0,0 +1,7 @@
|
||||
<svelte:options runes />
|
||||
|
||||
<script>
|
||||
import A from './A.svelte';
|
||||
</script>
|
||||
|
||||
<svelte:component this={A} />
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "svelte_component_deprecated",
|
||||
"message": "`<svelte:component>` is deprecated in runes mode — components are dynamic by default",
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 29
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in new issue