vite-plugin-strip-comments
JSON →Vite plugin to strip comments in production builds, with options to preserve legal comments or JSDoc. Current stable version is 0.0.10 (released 2025-03-17). Targets Node >=20, requires pnpm >=9.10.0 or Deno >=2.0.4. Compatible with Rollup, Rolldown, tsup, and tsdown. Differentiates from built-in minify by removing stubborn comments like istanbul ignore flags. Provides three stripping modes: all, keep-legal (default), and keep-jsdoc. Ships TypeScript types. Early stage (low version), use with caution. GitHub: https://github.com/thednp/vite-plugin-strip-comments.
Traffic · last 30 days stale · no recent hits
total hits 13
actors 5 distinct systems
last hit 25d ago MJ12bot
top countries 🇺🇸 United States · 🇬🇧 United Kingdom · 🇩🇪 Germany · 🇳🇴 Norway · 🇨🇦 Canada
Resources
API endpoints
compatibility /v1/registry/vite-plugin-strip-comments/compatibility