Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
billyjanitsch opened this issue Nov 26, 2024 · 0 comments Β· May be fixed by #60622
Open

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

billyjanitsch opened this issue Nov 26, 2024 · 0 comments Β· May be fixed by #60622
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@billyjanitsch
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants