tslib icon indicating copy to clipboard operation
tslib copied to clipboard

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

Open GitMurf opened this issue 3 years ago • 1 comments

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!

GitMurf avatar Jun 03 '22 15:06 GitMurf

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

orta avatar Jun 03 '22 16:06 orta