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
dummdidumm commented
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.
jrmoynihan commented
Make sure you have a .prettierrc
file added as well!
#2383 (comment)