Svelte: Slots with comments as first element halts builds

Created on 16 Mar 2020  路  1Comment  路  Source: sveltejs/svelte

To Reproduce

<slot>foobar<!-- placeholder--></slot> works
<slot> <!-- placeholder--></slot> works
<slot></slot> works
<slot/> works
<slot><!-- placeholder--></slot> doesn't work
<slot><!-- placeholder--> </slot> doesn't work
<slot><!-- placeholder--> foobar </slot> doesn't work

Expected behavior
Should build

Svelte version
3.20.0 and 3.20.1

Rollup

Severity
Severe. Breaks apps and shows nothing in the logs.

slot bug has pr

Most helpful comment

The fix for this has been finally released in 3.21.0.

>All comments

The fix for this has been finally released in 3.21.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plumpNation picture plumpNation  路  3Comments

st-schneider picture st-schneider  路  3Comments

1u0n picture 1u0n  路  3Comments

clitetailor picture clitetailor  路  3Comments

matt3224 picture matt3224  路  3Comments