npm / prettier-plugin-tailwindcss
prettier-plugin-tailwindcss
What changed in prettier-plugin-tailwindcss 0.7 to 0.8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
3 breaking1 new APIs and options7 performance2 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprettier-plugin-tailwindcss 0.815 changes
Breaking changes 2
Requires at least Prettier 3.7.x.
Removes top-level await.
New APIs and options 1
Exports the public sorting APIs from
/sorter.
Performance 6
Improves config resolution caching with a directory-based cache.
Optimizes dynamic JS attribute handling.
Improves load-time performance.
Uses the plugin that has already been imported rather than dynamically importing it again.
Loads v3/v4 modules only when needed.
Optimizes whitespace-only class detection.
Behavior and default changes 1
Loads compatible plugins on demand and tightens plugin detection.
Fixes and other changes 5
Class sorting no longer removes escape sequences, preventing invalid code in Vue attribute expressions.
Class sorting is restored in Svelte markup and dynamic class expressions when using prettier-plugin-svelte v4.
Skips visiting non-node children.
Improves
canCollapseWhitespaceInhandling whentailwindPreserveWhitespaceis true.Fixes v3 config loading with Jiti re-exports.
prettier-plugin-tailwindcss 0.76 changes
Breaking changes 1
Top-level await was removed.
Performance 1
Load-time performance was improved.
Behavior and default changes 1
Collapses whitespace in template literals with adjacent quasis.
Fixes and other changes 3
Compatible plugins are loaded sequentially to work around race conditions in Node.js.
Fixes compatibility with prettier-plugin-svelte when using Prettier v3.7+.
Regexes now match against the correct name of dynamic attributes.