-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
π 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
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
petamoriken and jekh
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue