Signal Sciences Rollup Config

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

A shared Rollup configuration preset used internally by Signal Sciences projects. Version 4.0.9 requires Rollup ^2.0.0 and @babel/core ^7.13.0 as peer dependencies. It provides a minimal base config with no customization exposed. The README explicitly warns that the preset may change without notice and is intended only for Signal Sciences projects. It is not recommended for external use; authors suggest creating your own config instead.

error Error: Cannot find module 'rollup-config-signalsciences'
cause Package not installed or peer dependencies missing.
fix
Run 'npm install rollup-config-signalsciences rollup @babel/core --save-dev'.
error SyntaxError: Unexpected identifier
cause Trying to use ES import syntax in a CommonJS environment or vice versa.
fix
Use 'const config = require("rollup-config-signalsciences")' in rollup.config.js (which is CommonJS by default).
error TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
cause Combining module.exports with ES import statements.
fix
Do not mix ES imports and CommonJS exports in the same file; stick to one pattern.
gotcha The preset is intended for Signal Sciences projects only and may change without warning. External use is discouraged.
fix Create your own Rollup config instead of relying on this package for non-Signal Sciences projects.
deprecated The package has minimal documentation and may not be maintained openly.
fix Consider alternatives like @rollup/plugin-babel or rollup-plugin-babel if you need a Babel setup.
gotcha The config does not export individual plugins or options; it returns a single Rollup config object.
fix Use the entire config as is; cannot easily extend parts of it.
npm install rollup-config-signalsciences
yarn add rollup-config-signalsciences
pnpm add rollup-config-signalsciences

Shows installation and usage of the shared Rollup config via a CommonJS require in rollup.config.js.

// Install peer dependencies: npm install rollup @babel/core --save-dev
// Install this config: npm install rollup-config-signalsciences --save-dev

// rollup.config.js
module.exports = require('rollup-config-signalsciences');

// Then build with: npx rollup -c