Rollup Tree-Shaking: An Architecture Note on Dead-Code Elimination
Tree-shaking is a static-analysis contract, not a minifier toggle. Here is the smallest Rollup design that satisfies it, plus checks and failure modes.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Tree-shaking is a static-analysis contract, not a minifier toggle. Here is the smallest Rollup design that satisfies it, plus checks and failure modes.
Learn how Notion Relations and Rollups automate cross‑table aggregates like task counts and completion percentages for lightweight project tracking.
Rollup's manualChunks lets you split stable vendor dependencies from churning app code so browsers keep cached third-party code across deploys. Here's a working config, how to verify it, and when splitting backfires.
Reduce initial bundle size by using Rollup's dynamic import() and manualChunks to isolate vendor libraries and lazy-load feature modules on demand.
Learn how Rollup's tree shaking removes unused code through static analysis of ES Modules and how to avoid common pitfalls like side effects and CommonJS dependencies.