How @babel/preset-env maps browserslist targets to plugins and polyfills, where the trust boundaries lie, and the three failure modes that reach production — with commands to verify your config today.
A task guide for replacing global core-js polyfills with core-js-pure named imports in a JavaScript library, including setup, validation, and rollback.
Stop shipping every core-js polyfill to every browser. Use core-js-compat with browserslist to import only the ECMAScript polyfills your supported targets actually need.
Blanket core-js imports bloat bundles and risk overriding natives. Targeted modular imports with runtime feature detection give smaller builds and safer polyfills for web and Node apps.
Stop using .reduce() to build objects from maps. Learn how to implement the ES2020 Object.fromEntries polyfill via CoreJS to ensure cross-browser compatibility without bloating your bundle.
Global polyfills bloat bundles and mutate prototypes. Learn how core-js/pure with Babel's usage mode injects only the polyfills your code actually needs, with config, example, and pitfalls.