microsoft / tslib

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

If my TS target is ES2017 for an Electron app, does tslib even do anything? #178

Closed GitMurf closed 1 year ago

GitMurf commented 2 years ago

I am building an Electron app with TypeScript and setting my target to ES2017 in my tsconfig.json. I am new to tslib and trying to figure out whether it can help at all in my project. If my target is newer than es5 (which it is with 2017) then is there any purpose or value that tslib adds? Or is the main purpose for tslib to compile things efficiently down to es5 code to be compatible with older browsers (which Electron does not need)?

Thanks!

orta commented 2 years ago

This is a good question for Stack Overflow or the TypeScript Community discord 👍🏻