Modern JavaScript bundlers are architectural marvels that transform complex codebases into optimized production assets. This technical deep dive deconstructs how bundlers like Vite, webpack, or Rollup work under the hood, revealing the engineering that powers our build tools.
We will journey through the bundling pipeline, starting from the understanding of the AST, parsing and static analysis for dependency resolution, some core optimizations like tree-shaking and code spitting, closing with some advanced concepts like HMR.
This talk has been presented at JSNation 2025, check out the latest edition of this JavaScript Conference.