🔎 Search Terms
ES2024 lib target 5.7
🕗 Version & Regression Information
Introduced in #58573.
⏯ Playground Link
Cannot repro in playground because lib definitions are handled differently there
💻 Code
This TSConfig is supposed to add library definitions for ES2024:
{
"compilerOptions": {
"target": "ES2024"
}
}🙁 Actual behavior
No library definitions are included at all, because the logic to include them is missing here:
| exportfunctiongetDefaultLibFileName(options: CompilerOptions): string{ |
| consttarget=getEmitScriptTarget(options); |
| switch(target){ |
| caseScriptTarget.ESNext: |
| caseScriptTarget.ES2023: |
| caseScriptTarget.ES2022: |
🙂 Expected behavior
Library definitions for ES2024 and below should be included.
Additional information about the issue
No response
🔎 Search Terms
ES2024 lib target 5.7
🕗 Version & Regression Information
Introduced in #58573.
⏯ Playground Link
Cannot repro in playground because lib definitions are handled differently there
💻 Code
This TSConfig is supposed to add library definitions for ES2024:
{ "compilerOptions": { "target": "ES2024" } }🙁 Actual behavior
No library definitions are included at all, because the logic to include them is missing here:
TypeScript/src/compiler/utilitiesPublic.ts
Lines 321 to 326 in 96410eb
🙂 Expected behavior
Library definitions for ES2024 and below should be included.
Additional information about the issue
No response