A build tool that uses esbuild to incrementally build LayaBox projects, enabling near-instant browser refresh after code changes. Version 1.3.2 is the current stable release. It is distributed as a CLI tool (globally installed via npm) and provides commands to initialize config, start build server, and specify custom config files. Key differentiators: it does not compile TypeScript but uses esbuild for fast bundling, supports breakpoint debugging (VSCode or browser), and includes a built-in WebSocket tool for live reload. Compared to LayaAir's built-in compiler or webpack, it offers significantly faster rebuild times. The tool is designed specifically for LayaBox game development workflow.
npm install layabox-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Globally install the package, initialize a config file, then start the development server with watch mode.
npm i layabox-esbuild -g
Ensure config file exists at specified path or run -i to generate default.
Use a separate build step for production, e.g., esbuild or webpack.
Set autoUpdateTaskTime to a reasonable value (default is 5).
Run npm i layabox-esbuild -g
Run 'layabox-esbuild -i' to generate default config, then ensure it's in the current directory.
Check that layaboxEsbuildConfig.js exports a valid configuration object.
No dependency data recorded yet.