bundle

The files a build tool produces by combining an application's code and its libraries for the browser to download.

In more detail

Smaller bundles load faster. Design systems help by letting bundlers drop unused components (tree shaking) and by avoiding separate stylesheet builds for each theme.

Examples

In the browser: Bundling cuts the number of requests but can make users download code they do not need, so large apps split bundles by page or feature. Build tools create bundles and usually give them hashed file names.
In Next.js only Client Components and their imports go into the client bundle; Server Components add nothing to it.

Related terms

Taught in

References