Prewarm Bun runtime state inside a Firecracker VM before snapshotting
npm install @insanitybit/bun-prewarmPrewarm Bun runtime state inside a Firecracker VM before snapshotting.
This package warms Bun-related filesystem, binary, and runtime state so that after snapshot restore, Bun startup and first-execution latency are lower.
``sh`
npm install -g @insanitybit/bun-prewarm
Run explicitly during VM snapshot build:
`sh`
bun-prewarmthen snapshot the VM
1. Runs bun --version to fault the Bun binary into memorybun install --no-save
2. Executes a small JS workload under Bun to warm parsing and runtime
3. Runs to warm package manager code paths
- Bun must be installed and available on $PATH`
- Linux environment (Firecracker VM)
- Node.js 18+ (for running the prewarm script itself)