{"id":22991,"library":"wrollup","title":"wrollup","description":"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.","status":"abandoned","version":"0.3.1","language":"javascript","source_language":"en","source_url":"https://github.com/talmobi/wrollup","tags":["javascript","watch","watcher","rollup"],"install":[{"cmd":"npm install wrollup","lang":"bash","label":"npm"},{"cmd":"yarn add wrollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add wrollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required because wrollup invokes rollup's programmatic API to build and watch","package":"rollup","optional":false}],"imports":[{"note":"The package is CommonJS only. As of v0.3.1, there is no default ESM export.","wrong":"import wrollup from 'wrollup'","symbol":"wrollup","correct":"const wrollup = require('wrollup')"},{"note":"The package is primarily used as a CLI tool. The CLI is the main interface; programmatic API is undocumented.","wrong":"wrollup","symbol":"cli","correct":"npx wrollup --help"},{"note":"The programmatic API takes an options object with config file path. This is inferred from source code.","symbol":"watchConfig","correct":"wrollup({ config: 'rollup.config.js' })"}],"quickstart":{"code":"npm install --save-dev rollup wrollup\n# create rollup.config.js (see README)\n# run: npx wrollup -c rollup.config.js\n# Or add to package.json scripts:\n# \"watch\": \"wrollup -c rollup.config.js\"\n# Note: This package is outdated; consider using rollup --watch instead.","lang":"javascript","description":"Shows installation and basic CLI usage to watch a Rollup config file for changes, with dependency installation."},"warnings":[{"fix":"Use Rollup's built-in --watch flag: rollup -c --watch","message":"wrollup is unmaintained and may not work with modern Rollup versions (>=1.0.0). The project has not been updated since 2018.","severity":"deprecated","affected_versions":">=0.3.1"},{"fix":"Ensure rollup is installed: npm install --save-dev rollup","message":"wrollup depends on the 'rollup' package being installed separately as a peer. Missing rollup will cause a runtime error.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"If your config uses an array or async function, use Rollup's built-in watch instead.","message":"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.","severity":"breaking","affected_versions":">=0.3.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"npm install --save-dev rollup","cause":"Missing rollup peer dependency","error":"Error: Cannot find module 'rollup'"},{"fix":"Use -c option to specify path: wrollup -c path/to/config.js","cause":"Config file not found or wrong path","error":"Error: Could not resolve config file rollup.config.js"},{"fix":"Use const wrollup = require('wrollup'); (the package is CJS only)","cause":"Programmatic use with ES import instead of require","error":"TypeError: wrollup is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}