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)?
I am building an Electron app with TypeScript and setting my
target
toES2017
in mytsconfig.json
. I am new totslib
and trying to figure out whether it can help at all in my project. If mytarget
is newer thanes5
(which it is with 2017) then is there any purpose or value thattslib
adds? Or is the main purpose fortslib
to compile things efficiently down toes5
code to be compatible with older browsers (which Electron does not need)?Thanks!