Registry / devops / rollup-worker

rollup-worker

JSON →
library2.0.1jsnpmunverified

A CLI tool that wraps Rollup with built-in plugins for simplified, zero-config bundle management across multiple entry points. Version 2.0.1, with a next tag for latest releases. Key differentiators: plugin aliases (e.g., 'resolve', 'typescript', 'babel') that auto-configure, per-entry plugin overrides via functions, and a default config file (.fssrc.js). Targets Node >=7.10.1, and supports common formats (ESM, CJS, UMD, IIFE). Less flexible than raw Rollup but reduces boilerplate for multi-bundle workflows.

npm install rollup-worker
INSTALL
IMPORT
SIG · ROLLUP-WORKER
R
rollup-worker
devopsjavascriptv2.0.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–223 runs
build_error
glibc
node 18–223 runs
build_error
Code
Verified usage

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

cli usage
✓ npx rollup-worker -c .fssrc.js
✗ require('rollup-worker')
rollup-worker is a CLI tool, not a library. Importing as a Node module will not work as expected.
config export
✓ module.exports = { ... }
✗ export default { ... }
Config file .fssrc.js must use CommonJS to export config object, even if your project is ESM.
plugin list
✓ const plugins = ['resolve', 'typescript'];
✗ const plugins = ['nodeResolve', 'ts'];
Plugin names are specific: 'resolve' (not 'nodeResolve'), 'typescript' (not 'ts'), 'commonjs', 'babel', 'globals', 'node-builtins'.

Minimal config file showing plugin aliases, per-entry overrides, and multiple output formats.

// .fssrc.js const { version, name, author, dependencies } = require('./package.json') const banner = `/*! ${name} v${version} | MIT licensed. | by ${author} */` module.exports = { plugins: { resolve: () => ({ preferBuiltins: false }), commonjs: {}, babel: (cfg) => ({ comments: cfg.output.format !== 'iife' }), replace: { __VERSION__: version } }, entry: [ { input: './src/main.js', plugins: ['resolve', 'commonjs', 'babel'], output: [ { format: 'es', file: 'dist/bundle.esm.js' }, { format: 'cjs', file: 'dist/bundle.cjs.js', banner } ] } ] }
rollup-worker --version
Debug
Known issues
deprecatedThe 'next' install tag (npm i -g rollup-worker@next) is deprecated; use latest instead.
fix
Install with 'npm i -g rollup-worker@latest' or just 'npm i -g rollup-worker'.
affects: >=2.0.0
gotchaPlugin alises may conflict with older Rollup plugin names; e.g., 'resolve' maps to @rollup/plugin-node-resolve but behavior differs.
fix
Check internal plugin mapping for each alias; override plugin config via function to control options.
affects: all
gotchaConfig file .fssrc.js must export via module.exports, not export default; failing silently yields no output.
fix
Use CommonJS export: module.exports = { ... }.
affects: all
gotchaPlugin configuration functions receive { output, ... } , but some plugins expect different signature (e.g., typescript receives rollupCfg).
fix
Inspect plugin source or log the argument: plugins: { myPlugin: (cfg) => { console.log(cfg); return {}; } }.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module '@rollup/plugin-node-resolve'
rollup-worker does not bundle all Rollup plugins; they must be installed separately if not included by default.
fix
Install the missing plugin: npm install --save-dev @rollup/plugin-node-resolve
Unexpected token: punc (.)
Config file uses ESM syntax (e.g., import/export) but rollup-worker expects CJS.
fix
Convert to CommonJS: replace 'export default' with 'module.exports ='.
Error: Could not resolve 'fs' (or other Node built-in)
Rollup by default externalizes Node built-ins, but 'node-builtins' plugin must be enabled to shim them.
fix
Add 'node-builtins' to the plugins array.
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
rolluprequiredCore bundler, though not listed as peer dependency; rollup-worker relies on it internally.
Agent activity
2 hits · last 30 days
node
2
Resources
rollup-worker — npm install rollup-worker · libregistry