{"id":26408,"library":"socifi-rollup-config","title":"socifi-rollup-config","description":"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.","status":"maintenance","version":"1.6.1","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/socifi/socifi-rollup-config","tags":["javascript","rollup","rollup-config","rollupconfig"],"install":[{"cmd":"npm install socifi-rollup-config","lang":"bash","label":"npm"},{"cmd":"yarn add socifi-rollup-config","lang":"bash","label":"yarn"},{"cmd":"pnpm add socifi-rollup-config","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for configuration to work","package":"rollup","optional":false},{"reason":"used for transpilation via Babel","package":"@babel/core","optional":false},{"reason":"required by Babel configuration","package":"@babel/preset-env","optional":false},{"reason":"integrates Babel with Rollup","package":"rollup-plugin-babel","optional":false}],"imports":[{"note":"ESM-only; does not export a CommonJS module.","wrong":"const getConfig = require('socifi-rollup-config');","symbol":"default (getConfig)","correct":"import getConfig from 'socifi-rollup-config';"},{"note":"The package exports a default function, not a named export.","wrong":"import { getConfig } from 'socifi-rollup-config';","symbol":"getConfig","correct":"import getConfig from 'socifi-rollup-config';"},{"note":"The package does not export TypeScript types. Use @rollup/plugin-typescript or similar for TS support.","wrong":"import type { RollupOptions } from 'socifi-rollup-config';","symbol":"TypeScript usage","correct":"// type imports not needed; the config is JavaScript"}],"quickstart":{"code":"// Install dependencies\nnpm install socifi-rollup-config rollup @babel/core @babel/preset-env rollup-plugin-babel --save-dev\n\n// rollup.config.js\nimport getConfig from 'socifi-rollup-config';\nimport path from 'path';\nimport packageJson from './package.json';\n\nexport default getConfig(packageJson, path.resolve(__dirname, 'src'), {\n    // custom options (optional)\n    custom: 'setting',\n});\n\n// Run rollup\nnpx rollup -c","lang":"javascript","description":"Shows how to install, import, and use the getConfig function to generate a Rollup configuration."},"warnings":[{"fix":"Consider using a modern alternative like @rollup/plugin-babel with a custom setup.","message":"Package has not been updated since 2019; likely unmaintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure your Rollup config uses the new getConfig signature; see changelog.","message":"v2.0.0 introduced TypeScript support as a breaking change; projects using v1.x must update configuration.","severity":"breaking","affected_versions":">=2.0.0 <2.1.0"},{"fix":"Add a browserslist key to your package.json.","message":"The function expects packageJson to have a 'browserslist' field for Babel targets; missing it may default to a broad set.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Pin versions of rollup, @babel/core, etc. to those compatible at release time.","message":"Configuration relies on a specific tooling ecosystem (Babel 7, Rollup plugins) that may conflict with newer versions.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Replace rollup-plugin-babel with @rollup/plugin-babel in your project.","message":"Usage of rollup-plugin-babel is deprecated in favor of @rollup/plugin-babel.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install socifi-rollup-config --save-dev","cause":"Package not installed or npm resolution issue.","error":"Error: Cannot find module 'socifi-rollup-config'"},{"fix":"Use import getConfig from 'socifi-rollup-config'; (no curly braces)","cause":"Incorrect import syntax (named import instead of default).","error":"TypeError: getConfig is not a function"},{"fix":"Ensure package.json has 'browserslist' and install @babel/preset-env.","cause":"Missing Babel presets or plugins for syntax used in source.","error":"Error: Unexpected token (or 'You may need an appropriate loader')"},{"fix":"Move browserslist config to package.json under 'browserslist' key.","cause":"The package expects browserslist from package.json, not from .browserslistrc file.","error":"Error: [BABEL] Unknown option: .browserslist"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}