Rollup plugin (v2.0.0, last released 2017, no recent updates) to automatically mark babel-runtime modules as external during bundling. Purpose: avoid duplicating babel helpers/polyfills when using @babel/runtime. Requires peer dependencies babel-runtime >=6.25.0 and rollup >=0.45.2. Differentiator: simplifies rollup config by auto-detecting babel-runtime imports vs manual external list.
npm install rollup-plugin-babel-runtime-externalVerified import paths — ran on the pinned version, not inferred.
Rollup configuration using the plugin to externalize babel-runtime modules with all options enabled.
Update rollup and babel-runtime to meet peer dependency versions.
Migrate to native rollup external option or use @rollup/plugin-babel with externalHelpers.
Manually list other external modules in the external option; plugin only handles babel-runtime.
Explicitly set false only for the specific module types you want to bundle.
Run npm install --save-dev rollup-plugin-babel-runtime-external
Use import babelRuntimeExternal from 'rollup-plugin-babel-runtime-external' (default export)
Add babelRuntimeExternal() to plugins array in rollup.config.js
Ensure plugin is included and options match your babel-runtime usage