vite-plugin-prettier-format
JSON →Vite plugin that formats output files with Prettier after bundle generation, specifically useful for library mode builds. Version 1.0.0 (initial release) requires Node.js >=18.0.0 || >=20.0.0 and Prettier >=3.0.0 as a peer dependency. It hooks into the closeBundle phase, finds all files in outDir, reads, formats with Prettier using the project's config, and writes back. Unlike other formatting plugins, this one ensures consistent formatting of distribution files during the build process.
Traffic · last 30 days ↓23% vs prev 7d
total hits 29
actors 8 distinct systems
last hit 1d ago ByteDance
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · 🇳🇱 Netherlands
Resources
API endpoints
compatibility /v1/registry/vite-plugin-prettier-format/compatibility