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-configNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install, import, and use the getConfig function to generate a Rollup configuration.
Consider using a modern alternative like @rollup/plugin-babel with a custom setup.
Ensure your Rollup config uses the new getConfig signature; see changelog.
Add a browserslist key to your package.json.
Pin versions of rollup, @babel/core, etc. to those compatible at release time.
Replace rollup-plugin-babel with @rollup/plugin-babel in your project.
Run npm install socifi-rollup-config --save-dev
Use import getConfig from 'socifi-rollup-config'; (no curly braces)
Ensure package.json has 'browserslist' and install @babel/preset-env.
Move browserslist config to package.json under 'browserslist' key.