Shipping Only the Polyfills You Need: core-js 3 with @babel/preset-env
Configure @babel/preset-env with useBuiltIns: 'usage' and core-js 3 so Babel injects only the polyfills your browserslist targets need — plus how to verify and roll back.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Configure @babel/preset-env with useBuiltIns: 'usage' and core-js 3 so Babel injects only the polyfills your browserslist targets need — plus how to verify and roll back.
Libraries that polyfill globally can break their consumers' environments. Here's how core-js-pure and Babel's runtime transform let you ship modern code without touching shared prototypes.
Stop shipping unnecessary polyfills. Learn how to use @babel/preset-env and the useBuiltIns option to automatically optimize your JavaScript bundle based on target browser support.
Learn how to configure Babel’s preset‑env with browserslist targets and core‑js ‘usage’ to inject only the polyfills you need, shrink bundle size, and keep legacy browser support.
Stop the 'Undefined' crashes in legacy browsers. Learn the trade-offs between global entry polyfilling and granular imports using core-js to balance compatibility and bundle size.
A technical guide on choosing between 'usage' and 'entry' modes in core-js for Babel builds, comparing bundle size, reliability, and library vs. application strategies.
A diagnostic guide for CoreJS 3 polyfill issues with Babel: maps symptoms to causes, provides ordered checks, and ties fixes to each finding.
Learn how to diagnose and fix common core-js issues, from runtime TypeError crashes in old browsers to excessive bundle bloat, using Babel's useBuiltIns strategies.
Learn the critical difference between core-js 'entry' and 'pure' polyfilling strategies to avoid global namespace pollution in JavaScript libraries.