Registry / devops / esbuild-progress

esbuild-progress

JSON →
library1.0.1jsnpmunverified

A simple esbuild plugin that displays a progress bar during builds. Current stable version is 1.0.1, released as a minor update. It integrates easily into any esbuild setup, providing visual feedback for long builds. Key differentiators: zero dependencies, lightweight, and minimal configuration.

npm install esbuild-progress
INSTALL
IMPORT
SIG · ESBUILD-PROGRESS
E
esbuild-progress
devopsjavascriptv1.0.1
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.

ProgressPlugin
import ProgressPlugin from 'esbuild-progress'
const ProgressPlugin = require('esbuild-progress')
ESM default export; CJS also works via require().default.
ESM
import ProgressPlugin from 'esbuild-progress'
import { ProgressPlugin } from 'esbuild-progress'
The package exports a single default function, not a named export.
TypeScript
import ProgressPlugin from 'esbuild-progress'
Package ships with TypeScript types, so no extra types package needed.

Shows basic usage of esbuild-progress plugin with esbuild, using CJS require.

const esbuild = require('esbuild'); const ProgressPlugin = require('esbuild-progress').default; await esbuild.build({ entryPoints: ['src/index.js'], outfile: 'dist/bundle.js', plugins: [ProgressPlugin()], });
Debug
Known issues
gotchaUsing require('esbuild-progress') returns an object with a default property. Must call .default or use ESM import.
fix
const ProgressPlugin = require('esbuild-progress').default;
affects: >=1.0.0
gotchaThe plugin is a factory function, not a class. Calling ProgressPlugin() returns a valid plugin object.
fix
Use ProgressPlugin() with parentheses.
affects: >=1.0.0
gotchaThe plugin does not work in browser environments; it uses Node.js stream/stderr.
fix
Only use in Node.js builds.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: ProgressPlugin is not a constructor
Using new ProgressPlugin() instead of ProgressPlugin().
fix
Remove 'new'. Call ProgressPlugin() directly.
TypeError: (0 , _esbuildProgress.default) is not a function
ESM import of named export which doesn't exist.
fix
Use default import: import ProgressPlugin from 'esbuild-progress'
Module not found: Error: Can't resolve 'esbuild-progress'
Missing npm install or incorrect import path.
fix
Run 'npm install esbuild-progress --save-dev' and verify import statement.
Upgrade
Version history
1.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
esbuild-progress — npm install esbuild-progress · libregistry