Node.js Build Tooling & Bundlers

Parent: JavaScript and Node.js · researched 2026-06-02T22:05:54.259Z· 19 sources · 8 concepts · skill nodejs-build-tooling-bundlers

This reference is about **turning Node.js + TypeScript source into a production

Overview

1. The bundle-vs-ship-source decision for Node backends

2. esbuild — the fast default

3. swc — Rust-speed transpilation

4. tsup — the library-build sweet spot

5. Rollup — when output quality and plugins matter

6. @vercel/ncc — single-file compilation

7. Source maps for Node + tsconfig path-alias resolution

8. tsx / native TS for dev vs a bundler for prod

Practical patterns

Anti-patterns

Troubleshooting

References

Children

Frontier under this node: @vercel/ncc (single-file compilation for CLIs/Actions/Lambda), Rollup (output formats, tree-shaking, code-splitting, plugin ecosystem, when over esbuild), Source maps for Node (--enable-source-maps) + tsconfig path-alias resolution in bundles, The bundle-vs-ship-source decision for Node backends (tree-shaking, DCE, minification), esbuild (transform vs build API, platform:node, format, external/packages, no type-checking), swc (@swc/core, .swcrc, Rust speed, decorators/metadata, swc vs esbuild), tsup (esbuild wrapper, dual ESM+CJS, .d.ts generation, the library-build sweet spot), tsx / native TS for dev vs a bundler for prod

← the whole tree · 3D view· how to read this page