DEV Community

Discussion on: Is babel still relevant for TypeScript projects ?

Collapse
 
alexburner profile image
Alex Burner

One important aspect of babel-preset-env I think you missed: Browser Polyfills. TypeScript can transpile syntax down for older browsers, but it won't add runtime code to support something like String.prototype.replaceAll() in IE11

Collapse
 
mbeaudru profile image
Manuel Beaudru

Indeed, I will update the post this weekend to add this point 👍

I thought that TypeScript added polyfills, but it doesn't and adding them is not trivial either.

Thanks !