liveBook · Manning

Build artifact

As explained in Fast by Default

A build artifact is a file or packaged output generated by compiling, bundling, or otherwise building software.

A build artifact is a file or packaged output generated by compiling, bundling, or otherwise building software. Every build produces artifacts whose size can be measured byte-for-byte and compared with earlier builds, making size a performance dimension available before release. section 8.0

Artifact growth creates operational costs: oversized outputs download more slowly, deploy more slowly, and start more slowly. Small dependency and cache increases can accumulate unnoticed until diagnosing the problem becomes difficult because later changes obscure the cause. section 8.0 section 8.6

Inspect artifacts according to the platform and packaging path:

  • Visualize web bundles to locate large libraries, dependencies, and code that bundlers cannot remove because of older module formats. section 8.6
  • Inspect backend container layers for caches, build tools, unused packages, and accumulated indirect dependencies left in the final image. section 8.6
  • Audit mobile assets and release sizes; App Thinning and Android App Bundles deliver device-specific content but do not remove the need for tracking. section 8.6
  • Account for framework overhead in desktop applications; Electron can establish a 120–150MB size floor before application code is added. section 8.6

Catch growth at the build

A developer adds a dependency and notices that the build output has grown. Comparing the artifact immediately and investigating the dependency preserves context; waiting weeks makes the cause harder to isolate and the fix more expensive. section 8.0

How Fast by Default covers it

How deep it goes
Explains measurement, recurring growth patterns, and platform-specific inspection targets, but stops short of detailed optimization procedures.
Examples
Uses JavaScript bundles, backend container images, mobile releases, and Electron applications as concrete artifact examples.
What you can do after
Diagnose artifact growth by comparing builds and visualizing bundles, container layers, dependencies, and release contents.
How it connects
Connects build artifacts with dependencies, bundling, container images, mobile binaries, desktop frameworks, and startup performance.

Also explained in

Compare how 2 books explain build artifact →

Related concepts

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