- Support
<!-- prettier-ignore -->
comments (#59) - Fix
{#await}
printing with{:catch}
but no pending block (#76) - Fix
{#await}
printing with only a pending block (#77) - Support
{#await}
destructuring (#83) - Fix other
{#await}
handling in Svelte versions since 3.20 (#83)
- Support Prettier 2
- Add
svelteAllowShorthand
option - This plugin has now become an official Svelte project
- Add
svelteStrictMode
option - Support
{#await}
block shorthand syntax
- Support nested
<script>
and<style>
tags - Add
svelteSortOrder
option - Fix printing of HTML entities
- Add option to add newline to closing angle bracket
- Support all
<svelte:*>
elements - Throw Svelte parsing errors in format Prettier expects
- Add handling for
|local
transition modifier - Prevent
{#if}
blocks nested in an{#each}
/{:else}
from being converted into an{:else if}
- Fix whitespace trimming for lonely wrapped mustache tags
- Fix attribute wrapping
- Remove .html from list of extensions
- Use
typescript
as parser to handle both JS and TS - Add support for event modifiers
- Support Unicode content in
<script>
and<style>
blocks - Don't print children for empty elements
- Improve handling of text nodes
- Prevent extra whitespace for
<script>
-only templates - Correctly collapse empty elements
- Improve directive support
- Fix script + css and script + module printing
- Print HTML last
- Drop support for v2 and fully support v3
- Make Prettier and Svelte peer deps