liveBook · Manning

Bundling

As explained in Acing the Frontend Interview

A module bundler analyzes module dependencies and packages application code and assets into deployable bundles.

Bundling combines application files into efficient deliverables. A module bundler analyzes module dependencies and packages application code and assets into deployable bundles, helping connect source modules with production delivery. section 5.5 section 5.4

Keep bundling distinct from neighboring toolchain responsibilities:

  • Bundlers combine files for efficient delivery; Webpack, Vite, Rollup, Parcel, esbuild, Rspack, and Bun appear as examples. section 5.4
  • Transpilers convert code to another syntax or version, while bundlers may sometimes transform code as part of the build. section 5.4
  • Build tools automate broader build, test, and deployment workflows; scaffolding tools generate starter code and structure. section 5.4
  • Scaffolding tools can configure bundlers, transpilers, development servers, and hot module reloading so developers can begin application work quickly. section 5.1

Interview-ready explanation

A concise answer is: “A bundler combines application modules and assets into deployable bundles. Tools such as Webpack, Vite, Rollup, Parcel, esbuild, Rspack, and Bun occupy that part of the toolchain. I would distinguish bundling from transpilation, which changes code syntax, and from scaffolding, which generates project structure and configuration.” A useful follow-up is identifying whether a selected tool also performs transformation or broader build automation. section 5.4 section 5.1

Table 5.7 Overview of core JavaScript tooling
Aspect
Runtime environment
Package managers
Transpilers
Bundlers
Build tools
Scaffolding tools
Main function
Executes code and provides APIs.
Installs and manages dependencies.
Converts code to different syntax or version.
Combines files for efficient delivery.
Automates build, test, and deploy workflows.
Generates starter code and structure.
Examples               
Node.js, Deno,
Bun
npm, Yarn, pnpm, Deno, Bun
Babel, esbuild, SWC, Bun
Webpack, Vite, Rollup, Parcel, esbuild, Rspack,
Bun
Webpack, Vite, Rollup, Parcel, esbuild, Rspack
Vite
Does it run code?
Yes
No
No
No
No
No
Does it manage dependencies?
No
Yes
No
No
No
No
Does it transform code?
No
No
Yes
Sometimes
Often
No
Does it bundle files?
No
No
No
Yes
Yes
No
Does it generate boilerplate?
No
No
No
No
Sometimes
Yes

Use the comparison table to distinguish bundlers from runtimes, package managers, transpilers, build tools, and scaffolding tools by their primary functions. section 5.4

How Acing the Frontend Interview covers it

How deep it goes
Defines bundlers by combining files for delivery and lists tools, without detailing dependency-graph or bundle-generation internals.
Examples
Names Webpack, Vite, Rollup, Parcel, esbuild, Rspack, and Bun as bundling tools.
What you can do after
Evaluate/understand bundlers by separating their file-packaging role from transformation, runtime, dependency, and scaffolding responsibilities.
How it connects
Connects bundling with module dependencies, transpilers, build tools, scaffolding tools, runtimes, and package managers.

Also explained in

Compare how 9 books explain bundling →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Frontend Interview. The section links point to the parts of the book it draws on.