Registry / devops / rollup-config-whim

rollup-config-whim

JSON →
library3.0.0jsnpmunverified

A protean Rollup configuration generator that adapts to personal preferences for module and web builds. Current stable version is 3.0.0. Provides two main helpers: configureModule() for ES module output and configureWeb() for browser bundles. The package requires Rollup as a peer dependency and is intended for developers who want a zero-config Rollup setup with opinionated defaults. It does not include TypeScript or Babel by default; users must add those plugins separately. Release cadence is irregular, driven by the author's whims.

npm install rollup-config-whim
INSTALL
IMPORT
SIG · ROLLUP-CONFIG-WHIM
R
rollup-config-whim
devopsjavascriptv3.0.0
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.

configureModule
import { configureModule } from 'rollup-config-whim'
const { configureModule } = require('rollup-config-whim')
ESM-only; CommonJS require will not work.
configureWeb
import { configureWeb } from 'rollup-config-whim'
import configureWeb from 'rollup-config-whim'
Named export, not default export.
default import
import Whim from 'rollup-config-whim'
No default export; only named exports available.

Demonstrates using configureModule() with custom input/output in a Rollup config.

import { configureModule, configureWeb } from 'rollup-config-whim'; export default ({ ...configureModule(), input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'esm' } });
Debug
Known issues
gotchaPackage expects Rollup as peer dependency; missing Rollup causes build failures.
fix
Install rollup alongside rollup-config-whim: npm install --save-dev rollup rollup-config-whim
affects: >=1.0.0
gotchaconfigureWeb() returns an object without overriding output or plugins; those must be spread and overridden manually.
fix
Use spread operator: { ...configureWeb(), output: {...} }
affects: >=1.0.0
gotchaNo built-in support for TypeScript, Babel, or other transpilers; user must add plugins manually.
fix
Install and configure @rollup/plugin-typescript or @rollup/plugin-babel separately.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'rollup-config-whim'
Package not installed or incorrect npm install command.
fix
Run: npm install --save-dev rollup rollup-config-whim
'configureModule' is not exported from 'rollup-config-whim'
Using import that expects default export when named export is required.
fix
Use import { configureModule } from 'rollup-config-whim'
TypeError: Cannot read property 'input' of undefined
configureModule() returned undefined because of missing Rollup peer dependency.
fix
Install rollup: npm install --save-dev rollup
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Resources
rollup-config-whim — npm install rollup-config-whim · libregistry