Preparing for system design interviews?  Try bugzed.com →

rollup-plugin-cleandir

JSON →
library 3.0.0 ·javascript
verified Jun 18, 2026

A Rollup plugin that automatically empties output directories before each build. Version 3.0.0 requires Rollup >=4.0.0 and runs on the `buildStart` hook with `order: 'pre'` by default, ensuring cleanup happens before any other plugin. The plugin forces an explicit `OUT_DIR` argument (optional in v2 but required in v3). It ships TypeScript definitions. Compared to similar plugins like `rollup-plugin-clean`, it is minimal and focused, with no extra features. Release cadence is low; major versions align with Rollup major upgrades.

total hits 11
actors 5 distinct systems
last hit 25d ago AhrefsBot
GPTBot
4
ClaudeBot
2
Script
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇬🇧 United Kingdom · 🇨🇦 Canada