{"id":21895,"library":"rollup-config-whim","title":"rollup-config-whim","description":"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.","status":"active","version":"3.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/shannonmoeller/whim","tags":["javascript"],"install":[{"cmd":"npm install rollup-config-whim","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-config-whim","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-config-whim","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; CommonJS require will not work.","wrong":"const { configureModule } = require('rollup-config-whim')","symbol":"configureModule","correct":"import { configureModule } from 'rollup-config-whim'"},{"note":"Named export, not default export.","wrong":"import configureWeb from 'rollup-config-whim'","symbol":"configureWeb","correct":"import { configureWeb } from 'rollup-config-whim'"},{"note":"No default export; only named exports available.","wrong":"import Whim from 'rollup-config-whim'","symbol":"default import","correct":""}],"quickstart":{"code":"import { configureModule, configureWeb } from 'rollup-config-whim';\n\nexport default ({\n  ...configureModule(),\n  input: 'src/index.js',\n  output: { file: 'dist/bundle.js', format: 'esm' }\n});","lang":"javascript","description":"Demonstrates using configureModule() with custom input/output in a Rollup config."},"warnings":[{"fix":"Install rollup alongside rollup-config-whim: npm install --save-dev rollup rollup-config-whim","message":"Package expects Rollup as peer dependency; missing Rollup causes build failures.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use spread operator: { ...configureWeb(), output: {...} }","message":"configureWeb() returns an object without overriding output or plugins; those must be spread and overridden manually.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Install and configure @rollup/plugin-typescript or @rollup/plugin-babel separately.","message":"No built-in support for TypeScript, Babel, or other transpilers; user must add plugins manually.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev rollup rollup-config-whim","cause":"Package not installed or incorrect npm install command.","error":"Cannot find module 'rollup-config-whim'"},{"fix":"Use import { configureModule } from 'rollup-config-whim'","cause":"Using import that expects default export when named export is required.","error":"'configureModule' is not exported from 'rollup-config-whim'"},{"fix":"Install rollup: npm install --save-dev rollup","cause":"configureModule() returned undefined because of missing Rollup peer dependency.","error":"TypeError: Cannot read property 'input' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}