Conversation

Hey yo. Which target should I put in my tsconfig.json. Is there any advantage to selecting something more recent than ES6
Image
4
8
If I have a specific target browser in mind is there a way of figuring which of these the target browser supports short of doing a half dozen unit tests
4
2
Replying to
I guess the problem is like… I'm less interested in "where can I use it" and more interested in "what is the price of using an older ES?". Like I can list off a series of typescript features that break if you pick the ES5 option
1
Alas I fear that’s a bit like asking for the diff between gcc -Os and -O2 on code size: depends a lot on which featured you use and how, has to be empirically tested.