wrollup

raw JSON →
0.3.1 verified Mon Apr 27 auth: no javascript abandoned

A simple file watcher for Rollup, designed to automatically rebuild bundles when source files change. Version 0.3.1 (last updated ~2018) is the current stable release. It is a lightweight alternative to rollup-watch, offering automatic recovery from errors and a clean logging interface. It watches a Rollup config file and triggers rebuilds, with options for caching, verbose output, and custom error glob patterns. Suitable for development workflows with Rollup, but note it is unmaintained and relies on older Rollup API patterns.

error Error: Cannot find module 'rollup'
cause Missing rollup peer dependency
fix
npm install --save-dev rollup
error Error: Could not resolve config file rollup.config.js
cause Config file not found or wrong path
fix
Use -c option to specify path: wrollup -c path/to/config.js
error TypeError: wrollup is not a function
cause Programmatic use with ES import instead of require
fix
Use const wrollup = require('wrollup'); (the package is CJS only)
deprecated wrollup is unmaintained and may not work with modern Rollup versions (>=1.0.0). The project has not been updated since 2018.
fix Use Rollup's built-in --watch flag: rollup -c --watch
gotcha wrollup depends on the 'rollup' package being installed separately as a peer. Missing rollup will cause a runtime error.
fix Ensure rollup is installed: npm install --save-dev rollup
breaking wrollup expects Rollup config files that export a plain object (not an array or async function). It does not support Rollup's config array or promise feature added in Rollup 1.x.
fix If your config uses an array or async function, use Rollup's built-in watch instead.
npm install wrollup
yarn add wrollup
pnpm add wrollup

Shows installation and basic CLI usage to watch a Rollup config file for changes, with dependency installation.

npm install --save-dev rollup wrollup
# create rollup.config.js (see README)
# run: npx wrollup -c rollup.config.js
# Or add to package.json scripts:
# "watch": "wrollup -c rollup.config.js"
# Note: This package is outdated; consider using rollup --watch instead.