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.
npm install wrollupVerified import paths — ran on the pinned version, not inferred.
Shows installation and basic CLI usage to watch a Rollup config file for changes, with dependency installation.
Use Rollup's built-in --watch flag: rollup -c --watch
Ensure rollup is installed: npm install --save-dev rollup
If your config uses an array or async function, use Rollup's built-in watch instead.
npm install --save-dev rollup
Use -c option to specify path: wrollup -c path/to/config.js
Use const wrollup = require('wrollup'); (the package is CJS only)