webpack
A widely used JavaScript bundler that builds applications from modules, loaders and plugins.
In more detail
webpack reads package exports and sideEffects to decide which files to include and what it can remove. It supports tree shaking of ECMAScript modules in production mode.
Related terms
- bundler — A build tool, such as webpack, Rollup or Vite, that follows imports and combines modules into files a browser can load efficiently.
- tree shaking — Removing code that is exported but never imported from the final bundle, so less code is shipped.
Taught in
- Component Packaging: Dual ESM/CJS Builds & Package Exports — Design Systems & Component Engineering