"Debug build - using system Node.js for faster builds"
brew install ninja ccache
apt-get install ninja-build ccache
(or equivalent for your distribution)mac/scripts/release.sh
) automatically checks for and builds custom Node.js if needed. You don’t need to manually build it before releases.
-Os
, -flto
, etc.)web/.node-builds/
.node-builds/
when --custom-node
is passed without a path. It finds the most recent build by checking directory modification times.
--without-intl
- Removes internationalization support--without-npm
- Excludes npm from the binary--without-corepack
- Removes package manager wrapper--without-inspector
- Disables debugging protocol--without-node-snapshot
- Skips V8 snapshot (~2-3MB)--without-node-code-cache
- Skips code cache (~1-2MB)-Os
- Optimize for size-flto
- Link-time optimization-ffunction-sections
/ -fdata-sections
- Enable dead code elimination-Wl,-dead_strip
- Remove unused code at link timeweb/.node-builds/
and are excluded from git via .gitignore
. The build system automatically detects and reuses existing builds.
web/build-custom-node.js
web/build-native.js
mac/scripts/build-web-frontend.sh
web/.node-builds/node-v*-minimal/
web/native/vibetunnel
.node-builds/node-v*-minimal/out/Release/node