Dev server plugin for esbuild that provides live reload and error overlay. Current stable version is 4.2.10, released on npm with frequent updates. Key differentiators: integrates directly with esbuild's build process, supports Express and Electron examples, provides built-in error overlay for development. Requires Node >=18. Ships TypeScript types.
npm install esbuild-plugin-dev-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a basic esbuild build with the dev server plugin serving static files from './public' on port 3000.
Update plugin usage: `plugins: [devServer(options)]` instead of `plugins: [devServer.plugin(options)]`.
Upgrade Node to version 18 or later.
Add a separate script or use a library like `open` to open the browser after the build is complete.
Switch to `import devServer from 'esbuild-plugin-dev-server'`.
Update to v4+ and use `devServer(options)` directly in plugins array.
Call devServer with an options object: `devServer({ public: './public' })`.Run `npm install esbuild-plugin-dev-server`.