rollup-config-fabulator

raw JSON →
2.1.0 verified Mon Apr 27 auth: no javascript

Fabulator's default Rollup configuration for compiling JavaScript libraries. Current stable version is 2.1.0 (April 2024). Provides a pre-configured Rollup setup with plugins for bundling, minification, and serving. Differentiates by offering a minimal, opinionated config tailored for libraries rather than apps, simplifying setup for Fabulator-based projects. Release cadence is irregular with maintenance updates. Node.js >=12.22.12 required.

error Error: Cannot find module 'rollup-config-fabulator'
cause Package not installed or not in node_modules.
fix
Run npm install rollup-config-fabulator --save-dev.
error TypeError: config is not a function
cause Importing the package as object instead of calling the default export function.
fix
Use const configFunction = require('rollup-config-fabulator').default; or import config from 'rollup-config-fabulator' and call config(...).
breaking v2.0.0: Updated rollup-plugin-serve to v2 (BREAKING).
fix If using rollup-plugin-serve, update its usage according to v2 docs.
deprecated Package may become unmaintained; recent updates only dependency bumps.
fix Consider migrating to a more active config like @rollup/config-ecmascript.
npm install rollup-config-fabulator
yarn add rollup-config-fabulator
pnpm add rollup-config-fabulator

Shows basic usage: import the default config and customize input/output paths.

import config from 'rollup-config-fabulator';

export default config({
  input: 'src/index.js',
  output: [
    { file: 'dist/index.cjs.js', format: 'cjs' },
    { file: 'dist/index.esm.js', format: 'es' }
  ]
});