rebuildjs is a reactive esbuild-based build tool and development server for multi-page apps (MPAs), offering a simple, hackable alternative to Vite. It provides functions for both dev (with file watching, incremental builds, and a built-in HTTP server) and production builds. Currently at v0.71.1, it is actively developed with frequent releases. Key differentiators: full MPA focus, minimal configuration, and integration with `rmemo` for reactive state. Types are included. Requires `esbuild` as a peer dependency. The companion server framework `relysjs` (ElysiaJS-based) ties it together for app server usage.
npm install rebuildjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a dev server with file watching, incremental builds, and logging for a multi-page app.
Update esbuild to ^0.27.3.
Use destructured `{ server, close }` or check changelog for migration.Replace `rebuildWatch` with `rebuildDev`.
Use `import` or run in an ESM project.
Install esbuild: npm install esbuild
Switch to ESM import: import { rebuildDev } from 'rebuildjs'Update esbuild to ^0.27.3