Builds a Babel configuration for rollup-plugin-babel by reading a .babelrc file. Current stable version is 3.0.0 (August 2016, no recent updates). It simplifies Rollup integration by automatically converting presets to Rollup-compatible versions (e.g., es2015 → es2015-rollup) and adding the external-helpers plugin. Unlike manual configuration, it reads .babelrc and handles preset option passing (array syntax) for Babel v6.13+. Key differentiator: removes manual setup for Rollup+Babel, but is largely superseded by Rollup's built-in Babel handling.
npm install babelrc-rollupVerified import paths — ran on the pinned version, not inferred.
Shows how to import babelrc-rollup and pass its output to rollup-plugin-babel in a Rollup config.
Add findRollupPresets: true to the options object passed to babelrc().
Explicitly set findRollupPresets to false if you want exact preset matching, or upgrade to v3.0.0+.
Consider using @rollup/plugin-babel with manual babel config or @babel/preset-env's modules: false.
Explicitly set addModuleOptions: false if your presets handle modules themselves.
Set addExternalHelpersPlugin: false only if you are sure you don't need it.
Install the -rollup preset: npm install --save-dev babel-preset-es2015-rollup, or disable findRollupPresets.
Ensure a .babelrc file exists at the project root, or pass a custom path option to babelrc().
Use the default import: import babelrc from 'babelrc-rollup';