When your Babel-transpiled JavaScript throws ReferenceError for Promise or Symbol in target browsers, use this diagnostic guide to identify missing polyfills and misconfigured targets. Includes verification steps with babel --show-config and fixes for IE11 and Node.js targeting.
Configure @babel/preset-env with explicit browserslist targets and useBuiltIns: usage so your bundle only ships the core-js polyfills your code and users actually need.
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.
Learn how Babel’s preset-env can inject only the polyfills you actually need, based on your browserslist targets, and see the trade‑offs of the usage mode.
A step-by-step diagnostic guide for identifying why @babel/preset-env fails to transform syntax or inject polyfills for older browsers, including ordered checks and targeted fixes.
A tight target query is what keeps @babel/preset-env from rewriting syntax your users already run. Diff two target sets, keep ES modules for the bundler, and verify the result.