Registry / devops / rollup-all

rollup-all

JSON →
library1.10.6jsnpmunverified

Rollup-all is a build tool that wraps Rollup to automatically generate CommonJS, ES module, and browser (IIFE/UMD) bundles from a single source, with built-in Babel and TypeScript support. Current stable version is 4.0.0 (August 2025), with active development and semantic versioning. It differentiates from raw Rollup by providing an opinionated, zero-config setup that handles multiple output formats, minification, asset copying, and type definition file generation without manual configuration. Notable breaking changes occurred in v3.0.0 (format configuration restructured) and v4.0.0 (defaults moved to config root). Supports Node.js 12+ and is primarily used for library development.

npm install rollup-all
INSTALL
IMPORT
SIG · ROLLUP-ALL
R
rollup-all
devopsjavascriptv1.10.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

config
import { config } from 'rollup-all'
import rollupAll from 'rollup-all'
config is a named export, not default. ESM since v3.
rollupAll
import * as rollupAll from 'rollup-all'
const rollupAll = require('rollup-all')
CJS still works via require, but named destructuring is the modern pattern.
types (ConfigOptions)
import type { ConfigOptions } from 'rollup-all'
import { ConfigOptions } from 'rollup-all'
ConfigOptions is a TypeScript type export, not a value. Use 'import type' or 'import { type ConfigOptions }'.

Covers installation, npm script setup, and optional configuration with config() function including babel presets and build options.

npm install --save-dev rollup-all // package.json { "scripts": { "build": "rollup-all" } } // rollup.config.js (optional) const { config } = require('rollup-all'); module.exports = config({ config: { sourcemap: true, uglify: true, assets: ['assets/**'], distConfig: { enabled: true } }, babelConfig: { presets: [['@babel/preset-env', { targets: '> 0.25%' }]], plugins: ['@babel/plugin-proposal-optional-chaining'] } }); // Then run: npm run build
rollup-all --version
Debug
Known issues
breakingIn v4.0.0, config.defaults is removed and must be placed at config root level.
fix
Move any options previously under config.defaults to the root of the config object.
affects: >=4.0.0
breakingIn v3.0.0, the way build formats are enabled changed. It now uses a format-specific configuration object.
fix
Update your rollup.config.js to use the new format enablement structure: e.g., config({ distConfig: { enabled: true } }) instead of previous format.
affects: >=3.0.0
gotchaThe package requires certain Babel presets and plugins to be installed as peer dependencies. Missing them causes build failures.
fix
Install @babel/core, @babel/preset-env, @babel/preset-typescript, @babel/runtime, and @babel/plugin-transform-runtime as devDependencies.
affects: *
gotchaTypeScript projects must have typescript installed as a devDependency. Rollup-all does not include it automatically.
fix
Ensure 'typescript' is in your devDependencies.
affects: *
deprecatedThe 'uglify' option is deprecated in favor of 'minified'.
fix
Use 'minified: true' instead of 'uglify: true' in the config object.
affects: >=4.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup'
Rollup is a peer dependency not installed.
fix
npm install --save-dev rollup
TypeError: config is not a function
Using default import instead of named import for 'config'.
fix
Use 'import { config } from 'rollup-all'' or 'const { config } = require('rollup-all')'.
Error: No configuration found. Create a rollup.config.js file or use --config flag.
Missing configuration file or incorrect file name.
fix
Ensure a rollup.config.js file exists at project root, or run rollup-all with explicit config path.
src/index.ts(1,1): error TS2304: Cannot find name 'require'.
Using CommonJS require in a TypeScript file without node types.
fix
Install @types/node and ensure tsconfig includes 'moduleResolution': 'node' and 'allowSyntheticDefaultImports': true.
Upgrade
Version history
1.10.6latest on npm
Audit
Dependencies
rolluprequiredcore bundler dependency
babelrequiredtranspilation for downleveling
typescriptoptionalTypeScript support requires it as peer dependency
Agent activity
3 hits · last 30 days
node
2
Resources
rollup-all — npm install rollup-all · libregistry