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








