mirror of https://github.com/sveltejs/svelte
parent
ef5bcfe542
commit
f0c47c31bc
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: allow duplicate snippet declaration names
|
@ -0,0 +1,4 @@
|
||||
<script>
|
||||
const {children} = $props();
|
||||
</script>
|
||||
<div>{@render children()}</div>
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<div>Hello</div><div>World</div>`
|
||||
});
|
@ -0,0 +1,15 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
</script>
|
||||
|
||||
<Child>
|
||||
{#snippet children()}
|
||||
Hello
|
||||
{/snippet}
|
||||
</Child>
|
||||
|
||||
<Child>
|
||||
{#snippet children()}
|
||||
World
|
||||
{/snippet}
|
||||
</Child>
|
Loading…
Reference in new issue