sveltejs/language-tools

support svelte5

Closed this issue · 3 comments

6643 commented

Description

{@render children()}
Causes inability to format code

Proposed solution

{@render children()}
Causes inability to format code

Alternatives

No response

Additional Information, eg. Screenshots

No response

6643 commented

{#snippet abc()}
.....
{/snippet}

It can also result in an inability to format the code

We're shipping with an earlier built-in Svelte version to support the most number of people out of the box. If you want prettier working correctly, install the latest version of prettier and prettier-plugin-svelte inside your project, then it will format correctly because the Svelte 5 parser will then be used which understand this syntax.

Make sure you have a .prettierrc file added as well!
#2383 (comment)