mirror of https://github.com/sveltejs/svelte
The logic that was there didn't take components into account. The underlying problem is that the parent isn't properly set to `Fragment` in all cases because of nested `visit` calls we do in some places. Fixes #12447pull/12449/head
parent
a8dc96eb43
commit
15f935451a
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: prevent whitespaces merging across component boundaries
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
const { children } = $props();
|
||||
</script>
|
||||
|
||||
<p>text before the render tag {@render children()}</p>
|
||||
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<p>text before the render tag dont fuse this text with the one from the child</p>`
|
||||
});
|
||||
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
let text = $state('dont fuse this text with the one from the child');
|
||||
</script>
|
||||
|
||||
<Child>{text}</Child>
|
||||
Loading…
Reference in new issue