You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make tsc --init generate default target to ES6 or higher #39308
Can you clarify what's absurd? Just calling something names doesn't help us understand what's bad about it.
As an example: "Typescript includes the __awaiter helper because async/await is not a part of the ES6/ES2015 specification."
Async/await was first included in the ES2017 specification.
In 2024, and indeed 2023, we should not default to using helpers, or solutions like this, when native functionality is included with every modern browser. Using modern standards and not old fixes is good for readability, correctness, robustness of code, etc.
Activity
lloydjatkinson commentedon Jun 1, 2023
Any plans for the team to implement this change? It's absurd
tsc -initdefaults to"target": "es2016"and the rest still.RyanCavanaugh commentedon Jun 1, 2023
Can you clarify what's absurd? Just calling something names doesn't help us understand what's bad about it.
Axel-Jalonen commentedon Jun 21, 2024
As an example: "Typescript includes the
__awaiterhelper becauseasync/awaitis not a part of the ES6/ES2015 specification."Async/awaitwas first included in the ES2017 specification.In 2024, and indeed 2023, we should not default to using helpers, or solutions like this, when native functionality is included with every modern browser. Using modern standards and not old fixes is good for readability, correctness, robustness of code, etc.
https://stackoverflow.com/a/47995659
Jack-Works commentedon Apr 14, 2025
This is shipped since I cannot recall when