Preparing for system design interviews?  Try bugzed.com →

rollup-plugin-tree-shakeable

JSON →
library 2.0.0 ·javascript
verified Jun 18, 2026

A Rollup plugin (v2.0.0, latest) that automatically adds @__PURE__ annotations to top-level expressions in your JavaScript/TypeScript modules, convincing bundlers like Rollup, esbuild, and webpack that the module is side-effect free and enabling effective tree-shaking. Unlike setting `sideEffects: false` in package.json, which cannot handle function calls at module scope, this plugin annotates each call individually. Requires Node >= 22 and Rollup. Lightweight, zero-config, and actively maintained with few dependencies.

total hits 15
actors 5 distinct systems
last hit 16d ago AhrefsBot
GPTBot
4
Amazonbot
4
ClaudeBot
2
Script
1

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