Registry / devops / esbuild-plus

esbuild-plus

JSON →
library0.3.4jsnpmunverified

Minimal zero-dependency esbuild development environment with live reload. Current version 0.3.4. Provides a CLI tool (ebp) for development server and production builds using esbuild. Convention-over-configuration folder structure (static/, src/, target/). Includes global IS_DEV flag, IIFE support, and static file copying. Not actively maintained (last release 2021). Smaller alternative to full bundler setups like webpack or Vite for esbuild-based projects.

npm install esbuild-plus
INSTALL
IMPORT
SIG · ESBUILD-PLUS
E
esbuild-plus
devopsjavascriptv0.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CLI command
npx ebp
npm run ebp
The package exposes a bin script named 'ebp', not a programmatic API. Use npx or add script in package.json.
programmatic usage
No programmatic API is exported. The package only provides CLI.
IS_DEV global
if (IS_DEV) { ... }
import { IS_DEV } from 'esbuild-plus'
IS_DEV is a global variable injected at build time, not an import. It is available in bundled code when running with --dev.

Initialize a new project, install dependencies, create minimal files, and start the dev server at localhost:3000.

npm init -y npm i -D esbuild esbuild-plus mkdir -p static src echo '<script src="/main.js"></script>' > static/index.html echo 'console.log("Hello esbuild-plus");' > src/main.js npx ebp --dev
ebp --version
Debug
Known issues
gotchaThe --dev flag must be used to enable live reload; without it, the command bundles for production and exits.
fix
Add --dev when you want a development server with live reload.
affects: >=0.1.0
gotchaThe package requires esbuild as a peer dependency but does not install it automatically.
fix
Run npm i -D esbuild alongside esbuild-plus.
affects: >=0.1.0
gotchaIS_DEV is a global variable, not an import; TypeScript users must declare it (declare var IS_DEV: boolean;).
fix
Add a global type declaration file.
affects: >=0.1.0
breakingIn v0.2.0, the dev server was replaced with a custom server (was previously using esbuild's serve).
fix
Update your workflow if you relied on old server behavior.
affects: >=0.2.0
gotchaStatic files are only copied on initial start; changes to static/ may not be hot-reloaded.
fix
Upgrade to v0.3.2+ for improved static syncing.
affects: <0.3.2
Errors
Common errors & fixes
Error: Cannot find module 'esbuild'
esbuild peer dependency not installed.
fix
Run: npm i -D esbuild
Command 'ebp' not found
npx not used or path not set.
fix
Use: npx ebp or add to scripts in package.json.
IS_DEV is not defined
IS_DEV global not available without --dev flag.
fix
Run with --dev: npx ebp --dev
TypeError: ebp.runDev is not a function
Attempted to use programmatic API, but no such API exists.
fix
Use CLI via npx; there is no programmatic API.
Upgrade
Version history
0.3.4latest on npm
Audit
Dependencies
esbuildrequiredrequired peer dependency for bundling
Agent activity
4 hits · last 30 days
node
4
Resources
esbuild-plus — npm install esbuild-plus · libregistry