π 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:
|
export function getDefaultLibFileName(options: CompilerOptions): string { |
|
const target = getEmitScriptTarget(options); |
|
switch (target) { |
|
case ScriptTarget.ESNext: |
|
case ScriptTarget.ES2023: |
|
case ScriptTarget.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