A plugin for the Piral CLI that replaces the default bundler (webpack/parcel) with esbuild, providing faster debug and build capabilities for pilets and Piral instances. Version 1.4.0 is the current stable release, published with provenance. The plugin bundles esbuild, esbuild-sass-plugin, esbuild-codegen-plugin, and handles asset files out of the box. It requires Node.js >=20.18.1 and works with piral-cli. Key differentiators: seamless drop-in replacement, no additional config needed, and support for customization via esbuild.config.js. Recent updates include provenance, improved externals handling, and Node.js polyfills via plugins. The package ships TypeScript declarations.
npm install piral-cli-esbuildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installation, basic usage (piral build/pilet debug), and how to customize esbuild config via esbuild.config.js.
Use ESM imports (import) instead of require().
Upgrade Node.js to version 20.18.1 or later.
Install with --save-dev flag: npm i piral-cli-esbuild --save-dev
Update your pilets to schema v3 (see Piral documentation).
Use module.exports = function(options) { ... return options; }Name your config file esbuild.config.mjs or use dynamic import() inside the config.
Run: npm install --save-dev piral-cli-esbuild
Ensure piral-cli version is compatible (>=2.0). Upgrade piral-cli if needed.
Export a function that returns modified options: module.exports = function(options) { ... return options; }