~/talk

The Art of Tree-Shaking

TalkinDutchat DevWorld 2024 · 2024-02-29..03-01· [javascript, frontend-architecture]
slides:none on file

Shows how Lucide Icons reduced app bundle size by making each of 1,400 icons its own ES module and building with Rollup for effective tree-shaking. Concrete techniques include setting sideEffects in package.json, splitting monolithic React components into many exported subcomponents, avoiding import * as and jsx dot notation that break static analysis, and using bundle visualizers to measure real savings (e.g., ~170 KB less JS parsing).

AI-written summary · about

  1. 0:00Tree-shaking intro
  2. 1:30What tree-shaking is
  3. 3:40How bundlers work
  4. 5:53Requirements
  5. 7:37Maximizing tree-shaking
  6. 10:13Pitfalls
  7. 12:07Tree-shaking in React
  8. 13:28Advanced techniques
  9. 14:35Optimizing dependencies
  10. 15:21Verifying with analyzers
  11. 16:09Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.