github sveltejs/prettier-plugin-svelte prettier-plugin-svelte@4.2.0

31 minutes ago

Minor Changes

  • feat: put an element's content on its own lines instead of hugging > and </, since Svelte 5 removes whitespace at the start and end of an element (#547) (#554)

Patch Changes

  • fix: don't delete the last node when two adjacent comments precede <script> or <style> (#560)

  • fix: make menu correctly a block (#543)

  • fix: respect singleQuote in <svelte:element this={'tag'}> string literals (#541)

  • fix: keep empty {:catch} in {#await} blocks (removing it turns a handled rejection into an unhandled one) (#553)

  • fix: don't drop comments in an opening tag without attributes, or containing > (#551)

Don't miss a new prettier-plugin-svelte release

NewReleases is sending notifications on new releases.