A Babel plugin that automatically injects imports for core-js@3 polyfills based on the target environment. It works with @babel/preset-env's built-ins and useBuiltIns options to only include necessary polyfills. Version 0.14.2 supports @babel/core ^7.4.0 or ^8.0.0-0 (<8.0.0). Key differentiators: it is part of the official Babel polyfills family, replacing the older @babel/polyfill and babel-polyfill packages; it handles direct core-js imports without needing a separate transform; and it avoids injecting polyfills that are already supported by the target environment, reducing bundle size. It is actively maintained by the Babel team.
npm install babel-plugin-polyfill-corejs3No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows Babel configuration using babel-plugin-polyfill-corejs3 with @babel/preset-env to inject core-js@3 polyfills based on usage and targets.
Remove those packages; use core-js@3 directly via this plugin.
npm install core-js@3
Use 'usage-global' or 'entry-global' instead.
npm install core-js@3
Upgrade @babel/core to ^7.4.0+ or use compatible version.