Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
WebpackBar
✓ import WebpackBar from 'webpackbar'
✗ const WebpackBar = require('webpackbar'); // note: works in CJS, but ESM preferred
Default export for Webpack. Since v6, ESM-first, but CJS require still works.
WebpackBar (Rspack)
✓ import WebpackBar from 'webpackbar/rspack'
✗ import WebpackBar from 'webpackbar' // this will use webpack plugin, not rspack
Explicit path for Rspack support, added in v7.0.0.
WebpackBar type
✓ import type WebpackBar from 'webpackbar'
TypeScript type shipped. Use type import for type-only usage.
Basic Webpack configuration using WebpackBar plugin with color and profiling enabled.
import WebpackBar from 'webpackbar';
export default {
entry: './src/entry.js',
plugins: [
new WebpackBar({
color: 'green',
profile: true,
}),
],
};
Debug
Known issues
breakingNode.js version requirement increased to >=14.21.3 in v6.0.0 due to consola v3 upgrade.fixUpdate Node.js to v14.21.3 or later, or use webpackbar@5.x.
affects: >=6.0.0
breakingconsola upgraded to v3 in v6.0.0, which may break custom reporters relying on consola internals.fixEnsure custom reporters use consola v3 API. Use consola v3's `createConsola` if needed.
affects: >=6.0.0
deprecatedThe `profile` option no longer automatically adds a 'profile' reporter? Actually v6.0.0 fixed that. No deprecated options.
gotchaWhen using multiple instances (e.g., SSR), ensure each has a unique `name` to avoid progress bar collision.fixSet `name` option to a unique string per plugin instance.
affects: >=3.0.0
gotchaIn CI environments, `fancy` reporter defaults to false; progress may not display as expected.fixSet `fancy: true` explicitly if you want fancy bar in CI (not recommended).
affects: >=3.0.0
Errors
Common errors & fixes
Error: Cannot find module 'webpackbar'
Missing install or wrong import path.
fixRun `npm install webpackbar` or use correct import: `import WebpackBar from 'webpackbar'`.
TypeError: webpackbar is not a constructor
Using CommonJS require without default import.
fixChange `const WebpackBar = require('webpackbar')` to `const { default: WebpackBar } = require('webpackbar')` or use ESM `import WebpackBar from 'webpackbar'`. Error: Cannot find module 'webpackbar/rspack'
Using an older version of webpackbar that does not support Rspack (pre-v7).
fixUpgrade to webpackbar@7.0.0 or later: `npm install webpackbar@latest`.
Audit
Dependencies
No dependency data recorded yet.