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.
Common errors
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.
Warnings
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.
Install
npm install rollup-config-signalsciences yarn add rollup-config-signalsciences pnpm add rollup-config-signalsciences Imports
- config wrong
import config from 'rollup-config-signalsciences';correctmodule.exports = require('rollup-config-signalsciences') - config
import config from 'rollup-config-signalsciences' - rollupConfig wrong
const { rollupConfig } = require('rollup-config-signalsciences')correctconst rollupConfig = require('rollup-config-signalsciences')
Quickstart
// 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