Skip to content

prettier-plugin-svelte@4.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 21:19
183298a

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)