esbuild-utils is a utility library providing plugins and helpers for esbuild, currently at v1.0.0-next.9. It includes fixClassNamesPlugin (converts class expressions to declarations and strips @internal comments), livereloadServerPlugin (WebSocket-based live reload), esbuildRunPlugin (nodemon-like process runner), and a logTime helper for timing builds. The package ships TypeScript types and offers a frontend subpath import for live reload on the client. It is designed for Node.js and browser projects using esbuild. Being in pre-release, APIs are subject to change; notably, fixClassNamesPlugin does not support source maps and uses fs for output rewriting, which may change in future versions.
npm install esbuild-utilsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows usage of fixClassNamesPlugin, livereloadServerPlugin, and frontend live reload setup with esbuild.
Avoid using sourceMap with fixClassNamesPlugin, or manually remap after build.
Monitor releases; no action needed yet.
Ensure port conflicts are avoided or managed.
Use absolute paths or ensure command is in PATH; implement proper cleanup in onexit.
Pin exact version in package.json.
Use correct import: import { setupWSLiveReload } from 'esbuild-utils/frontend';Run npm install ws, or ensure the plugin is disabled when not in use.
Use import { fixClassNamesPlugin } from 'esbuild-utils';Disable sourceMap or remove fixClassNamesPlugin.