microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.25k stars 126 forks source link

v1.11.0 contains reference to WeakMap which is breaking older TypeScript version usages #93

Closed MSNev closed 4 years ago

MSNev commented 4 years ago

We are getting the following error when our project "ApplicationInsights" auto upgrades to 1.11.0

Using tsc v2.5.3 common/temp/node_modules/tslib/tslib.d.ts(35,94): error TS2304: Cannot find name 'WeakMap'. common/temp/node_modules/tslib/tslib.d.ts(36,94): error TS2304: Cannot find name 'WeakMap'.

We are currently blocked on upgrading to a later version of TypeScript and as a work around we have fixed this to version 1.10.0, is it possible to make 1.11.0 compatible with older versions of TS?