Registry / devops / socifi-rollup-config

socifi-rollup-config

JSON →
library1.6.1jsnpmunverified

A default Rollup configuration preset for compiling JavaScript libraries, maintained by SOCIFI. Currently at version 2.2.2 (stable, no recent releases since 2019). It bundles ECMAScript 6 with Babel env preset, supports Flow Type syntax, TypeScript (since v2.0.0), and JSON files. Files are bundled separately to enable smaller bundles for non-tree-shaking bundlers like Webpack. Flow type definition files are copied to the output. It is a specialized alternative to generic Rollup setups, targeting SOCIFI's internal needs.

npm install socifi-rollup-config
INSTALL
IMPORT
SIG · SOCIFI-ROLLUP-CONF
S
socifi-rollup-config
devopsjavascriptv1.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (getConfig)
import getConfig from 'socifi-rollup-config';
const getConfig = require('socifi-rollup-config');
ESM-only; does not export a CommonJS module.
getConfig
import getConfig from 'socifi-rollup-config';
import { getConfig } from 'socifi-rollup-config';
The package exports a default function, not a named export.
TypeScript usage
// type imports not needed; the config is JavaScript
import type { RollupOptions } from 'socifi-rollup-config';
The package does not export TypeScript types. Use @rollup/plugin-typescript or similar for TS support.

Shows how to install, import, and use the getConfig function to generate a Rollup configuration.

// Install dependencies npm install socifi-rollup-config rollup @babel/core @babel/preset-env rollup-plugin-babel --save-dev // rollup.config.js import getConfig from 'socifi-rollup-config'; import path from 'path'; import packageJson from './package.json'; export default getConfig(packageJson, path.resolve(__dirname, 'src'), { // custom options (optional) custom: 'setting', }); // Run rollup npx rollup -c
Debug
Known issues
deprecatedPackage has not been updated since 2019; likely unmaintained.
fix
Consider using a modern alternative like @rollup/plugin-babel with a custom setup.
affects: >=0.0.0
breakingv2.0.0 introduced TypeScript support as a breaking change; projects using v1.x must update configuration.
fix
Ensure your Rollup config uses the new getConfig signature; see changelog.
affects: >=2.0.0 <2.1.0
gotchaThe function expects packageJson to have a 'browserslist' field for Babel targets; missing it may default to a broad set.
fix
Add a browserslist key to your package.json.
affects: >=0.0.0
gotchaConfiguration relies on a specific tooling ecosystem (Babel 7, Rollup plugins) that may conflict with newer versions.
fix
Pin versions of rollup, @babel/core, etc. to those compatible at release time.
affects: >=2.0.0
deprecatedUsage of rollup-plugin-babel is deprecated in favor of @rollup/plugin-babel.
fix
Replace rollup-plugin-babel with @rollup/plugin-babel in your project.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'socifi-rollup-config'
Package not installed or npm resolution issue.
fix
Run npm install socifi-rollup-config --save-dev
TypeError: getConfig is not a function
Incorrect import syntax (named import instead of default).
fix
Use import getConfig from 'socifi-rollup-config'; (no curly braces)
Error: Unexpected token (or 'You may need an appropriate loader')
Missing Babel presets or plugins for syntax used in source.
fix
Ensure package.json has 'browserslist' and install @babel/preset-env.
Error: [BABEL] Unknown option: .browserslist
The package expects browserslist from package.json, not from .browserslistrc file.
fix
Move browserslist config to package.json under 'browserslist' key.
Upgrade
Version history
1.6.1latest on npm
Audit
Dependencies
rolluprequiredpeer dependency required for configuration to work
@babel/corerequiredused for transpilation via Babel
@babel/preset-envrequiredrequired by Babel configuration
rollup-plugin-babelrequiredintegrates Babel with Rollup
Agent activity
6 hits · last 30 days
node
4
Bingbot
1
Resources
socifi-rollup-config — npm install socifi-rollup-config · libregistry