Skip to content

target: 'ES2024' does not include library definitionsΒ #60621

Closed
@billyjanitsch

Description

@billyjanitsch

πŸ”Ž 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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions