# What changed in prettier-plugin-tailwindcss

> 21 changes in prettier-plugin-tailwindcss 0.7 to 0.8 from its official release notes, upgrade guides and advisories: 3 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/prettier-plugin-tailwindcss/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## prettier-plugin-tailwindcss 0.8

### Breaking changes

- Requires at least Prettier 3.7.x. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Removes top-level await. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)

### New APIs and options

- Exports the public sorting APIs from `/sorter`. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)

### Performance

- Improves config resolution caching with a directory-based cache. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Optimizes dynamic JS attribute handling. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Improves load-time performance. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Uses the plugin that has already been imported rather than dynamically importing it again. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Loads v3/v4 modules only when needed. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Optimizes whitespace-only class detection. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)

### Behavior and default changes

- Loads compatible plugins on demand and tightens plugin detection. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)

### Fixes and other changes

- Class sorting no longer removes escape sequences, preventing invalid code in Vue attribute expressions. (0.8.1) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.1)
- Class sorting is restored in Svelte markup and dynamic class expressions when using prettier-plugin-svelte v4. (0.8.1) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.1)
- Skips visiting non-node children. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Improves `canCollapseWhitespaceIn` handling when `tailwindPreserveWhitespace` is true. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)
- Fixes v3 config loading with Jiti re-exports. (0.8.0) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0)

## prettier-plugin-tailwindcss 0.7

### Breaking changes

- Top-level await was removed. (0.7.3) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.7.3)

### Performance

- Load-time performance was improved. (0.7.3) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.7.3)

### Behavior and default changes

- Collapses whitespace in template literals with adjacent quasis. (0.7.3) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.8.0), [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.7.3)

### Fixes and other changes

- Compatible plugins are loaded sequentially to work around race conditions in Node.js. (0.7.2) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.7.2)
- Fixes compatibility with prettier-plugin-svelte when using Prettier v3.7+. (0.7.2) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.7.2)
- Regexes now match against the correct name of dynamic attributes. (0.7.1) — [release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases/tag/v0.7.1)
