13 · Environments & Packaging

Bundler

Packs your code for the browser

A tool that takes your many source files and dependencies and packs them into a few optimized files a browser can load fast. Vite and webpack are the common ones.

Concrete example

Vite bundles a React app for production, combining and shrinking everything during the build.

Why it matters

The machinery behind the “build” step for anything that runs in a browser.