tslib
tslib copied to clipboard
If my TS target is ES2017 for an Electron app, does tslib even do anything?
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!
This is a good question for Stack Overflow or the TypeScript Community discord 👍🏻