Re:TypeScript Is Surprisingly OK for Compilers
by shrimpx on Friday August 18, 2023 @03:58PM
(#37181260)
Thanks. It sounds like subclassing built-ins is where transpilers hit a hard wall. Other syntactic features of es6 can be transpiled.
[ Parent
| on HN ]
Re:TypeScript Is Surprisingly OK for Compilers
by zdragnar on Saturday August 19, 2023 @10:06AM
(#37188913)
http://kangax.github.io/compat-table/es6/
This page lists features from es6 (and newer versions linked at the top) along with compliance to the spec. First column is the current browser, second is babel+corejs polyfills.
Overall, babel gets about 70% of the way there.