Haya is an experimental development server and production bundler leveraging `esbuild` for both development and build processes, in contrast to similar tools like Vite which utilize Rollup for production builds. Currently at version `0.0.10`, it is in a very early stage of development and explicitly not recommended for serious production projects. Its release cadence appears rapid, with frequent minor version updates introducing features like Vue support and asset handling (e.g., `?raw`, `?worker`). Key differentiators include its `esbuild`-only approach for bundling, which aims for potentially faster production builds, and a reliance on full-page reloads during development instead of fine-grained Hot Module Replacement (HMR). It provides out-of-the-box support for TypeScript, JSX/TSX, CSS, and PostCSS, with path alias configuration available via `tsconfig.json`.
npm install hayaVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to scaffold a new Haya project, install dependencies, and run basic development and build commands.
Use with caution and monitor updates. Consider it for experimental or personal projects only.
Design applications to tolerate full page reloads, or consider alternative bundlers like Vite if HMR is a critical development requirement.
Regularly consult the changelog for each update (e.g., `https://github.com/egoist/haya/blob/main/CHANGELOG.md`) and be prepared to adapt your codebase.
If using Vue, install `@vue/compiler-sfc` alongside Haya: `npm install @vue/compiler-sfc`.
Upgrade your Node.js environment to version 16 or newer using a tool like `nvm` or by installing a recent Node.js distribution.
Install the Vue compiler: `npm install @vue/compiler-sfc`.
Install PostCSS as a dev dependency: `npm install postcss -D`.