Registry / devops / rollup-plugin-progress2

rollup-plugin-progress2

JSON →
library0.2.3jsnpmunverified

A Rollup plugin that displays the current module being transpiled during the bundling process. Version 0.2.3 rewrites the original rollup-plugin-progress in TypeScript and adds support for Rollup v3. It provides a simple progress indicator with an optional clearLine configuration. Unlike the original, this version is maintained, typed, and compatible with Rollup v3. Released as a scoped replacement, it has a low release cadence and minimal dependencies.

npm install rollup-plugin-progress2
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-PROG
R
rollup-plugin-progress2
devopsjavascriptv0.2.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

default
import progress from 'rollup-plugin-progress2'
const progress = require('rollup-plugin-progress2')
The package exports a default function; CommonJS require() does not work with this ESM-only module.
progress
import progress from 'rollup-plugin-progress2'
import { progress } from 'rollup-plugin-progress2'
The export is a default export, not named. Using destructuring will yield undefined.
Plugin
import type { Plugin } from 'rollup'
import { Plugin } from 'rollup-plugin-progress2'
Plugin type is from Rollup, not from this package. Wrong import leads to 'Plugin not exported' error.

Shows the minimum configuration to use rollup-plugin-progress2 with Rollup v3, including the import and plugin setup.

import { defineConfig } from 'rollup'; import progress from 'rollup-plugin-progress2'; export default defineConfig({ input: 'src/index.js', output: { dir: 'dist', format: 'es' }, plugins: [ progress({ clearLine: true }) ] });
Debug
Known issues
gotchaSetting clearLine to false will leave the progress line visible after bundling, which can clutter the terminal output.
fix
Set clearLine: true (default) to clear the progress line after each module.
affects: >=0.1.0
gotchaThe plugin only supports Rollup v3, not v2 or v4. Use with Rollup v2 will fail silently or cause errors.
fix
Ensure Rollup version is 3.x.
affects: >=0.2.0
deprecatedThe original rollup-plugin-progress is deprecated and unmaintained. This fork replaces it.
fix
Use rollup-plugin-progress2 instead.
affects: <0.2.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported.
Trying to use require() on an ESM-only package.
fix
Use import instead, or set { "type": "module" } in package.json.
TypeError: progress is not a function
Using named import instead of default import.
fix
Use import progress from 'rollup-plugin-progress2'.
Upgrade
Version history
0.2.3latest on npm
Audit
Dependencies
rolluprequiredpeer dependency: works only with Rollup v3
Agent activity
2 hits · last 30 days
node
2
Resources
rollup-plugin-progress2 — npm install rollup-plugin-progress2 · libregistry