vite-plugin-unused-code
JSON →A Vite/Rollup plugin to detect unused files and unused exports in used files (dead code elimination analysis). Current stable version is 0.1.8, released March 2026, with frequent bug fixes and Vite 8/Rolldown compatibility updates. Ported from webpack-deadcode-plugin; uses micromatch patterns for file matching. Key differentiator: provides both unused file and unused export detection in a single plugin for Vite/Rollup ecosystems. Limitations: cannot detect unused CSS or TypeScript types, and unused exports will not be reported in Rolldown (Vite 8+).
Traffic · last 30 days stale · no recent hits
total hits 22
actors 7 distinct systems
last hit 18d ago ByteDance
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇬🇧 United Kingdom · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/vite-plugin-unused-code
compatibility /v1/registry/vite-plugin-unused-code/compatibility