mirror of https://github.com/sveltejs/svelte
parent
4a8f0bc7e7
commit
cb1ea1f2db
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure `$$slots` exists in runes mode
|
@ -0,0 +1,6 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
// Test that $$slots exists in runes mode
|
||||
export default test({
|
||||
html: `<p>bar</p>`
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Slot from './slot.svelte';
|
||||
</script>
|
||||
|
||||
<Slot>
|
||||
<p>bar</p>
|
||||
</Slot>
|
@ -0,0 +1,3 @@
|
||||
{#if $$slots}
|
||||
<slot></slot>
|
||||
{/if}
|
Loading…
Reference in new issue