The build process transforms your development code into optimized files ready for production. It compiles TypeScript to JavaScript, bundles modules, minifies code, optimizes images, and produces the final files that get deployed. For vibe coders, the build process is what runs when you deploy — and build errors are the most common deployment blocker.
The build process is the bridge between development code and production code. What you write is not exactly what users receive — the build optimizes it first.
| Development | Production Build |
|---|---|
| Unoptimized, readable code | Minified, optimized code |
| Hot reload for fast feedback | Static files for fast loading |
| Verbose error messages | Minimal error info |
| Source maps included | Source maps optional |
npm run build before pushingBuilding locally before deploying saves you from broken deployments — make it a habit.