fancy-rollup is a multi-process wrapper for Rollup that runs multiple Rollup builds concurrently across CPU cores to speed up bundling. Version 0.5.5 (latest stable) targets Node >=8 and is published on npm. It reads an array of Rollup configurations from rollup.config.js and spawns separate Node processes for each build, providing several reporter styles (interactive, list, silent, etc.) for progress visualization. Unlike Rollup's sequential multi-bundle support, fancy-rollup parallelizes builds out of the box with options for concurrency limits and target selection. The package is in early development (minor version 0.x), with API support still planned. It has no runtime peer dependencies but relies on a compatible rollup installation.
npm install fancy-rollupVerified import paths — ran on the pinned version, not inferred.
Installation, configuration with an array of Rollup configs, and CLI usage. Shows concurrency and reporter options.
Consider using Rollup's built-in parallelization via --watch or other build tools like esbuild or webpack.
Always export an array of configuration objects: module.exports = [config1, config2];
Ensure only one compatible version (e.g., rollup@^2) is installed in the project's node_modules.
Use -p option to limit concurrency: fancy-rollup -p 2
Explicitly set reporter with -r option if you need non-interactive output in CI.
Install rollup as a dev dependency: npm install --save-dev rollup
Change module.exports = { ... } to module.exports = [{ ... }]Check that Node.js is installed and the user has permission to spawn processes. Reduce concurrency with -p flag.