vite-plugin-prettier-format

JSON →
library 1.0.0 ·javascript
verified May 27, 2026

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.

total hits 29
actors 8 distinct systems
last hit 1d ago ByteDance
GPTBot
5
Amazonbot
4
ByteDance
4
MetaBot
4
Script
1
Search engines
1
Humans
6

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · 🇳🇱 Netherlands