Rollup Tree-Shaking: Configuring sideEffects for Smaller Bundles
Rollup's tree-shaking only removes dead code when packages correctly declare sideEffects in package.json. Learn how to configure it, verify the pruning, and avoid common pitfalls that leave unused functions in your production bundle.