Transpilation rewrites source syntax into another form while aiming to preserve behavior. In JavaScript web builds, it can convert newer syntax into code understood by targeted browsers. section 13.3.2
Babel’s preset-env can use a Browserslist configuration to transform syntax as needed. TypeScript’s target setting instead selects an ECMAScript version; combining an esnext target with Babel allows browser-specific transforms. section 13.3.2
Keep the boundaries and tradeoffs in view:
- Transpilation changes syntax, not browser APIs. Babel will not make an unsupported API such as ResizeObserver available. section 13.3.2
- Expanded syntax can increase the bytes sent to users; otherwise modern sites may still ship bloated ES5 output. section 13.3.2
- Bundlers can transpile newer JavaScript for older runtimes as part of a broader build pipeline that may also compile TypeScript and minify output. section 13.3
"browserslist": "baseline widely available"
A Browserslist query can define the browser target that guides Babel’s syntax transforms. section 13.3.2





