microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.26k stars 130 forks source link

Version 2.8.0 ES5 Incompatibility #274

Closed nathaniel-norton closed 3 weeks ago

nathaniel-norton commented 3 weeks ago

The tslib.js file in version 2.8.0 is no longer compatible with ES5 due to the export syntax added in commit f63baa34b729338b527ca0a550328876e43ad6f7.

Our current workaround is to convert tslib.js to a .ts file, add // @ts-nocheck to the top of the file, and then let typescript transpile it correctly to our target JavaScript version.

Is the lack of ongoing compatibility for ES5 environments intentional or can this be resolved directly in tslib.js?