Skip to content

feat(create-vite): update target to es2023 in tsconfig.node.json#20078

Merged
patak-cat merged 1 commit into
vitejs:mainfrom
sapphi-red:feat/create-vite-update-target-in-tsconfig-node-json
May 21, 2025
Merged

feat(create-vite): update target to es2023 in tsconfig.node.json#20078
patak-cat merged 1 commit into
vitejs:mainfrom
sapphi-red:feat/create-vite-update-target-in-tsconfig-node-json

Conversation

@sapphi-red
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red commented May 21, 2025

Description

Set "target": "es2023" in tsconfig.node.json.

Node 20+ supports ES2023.
https://node.green/#ES2023

"target": "es2023" behaves the same with "target": "es2022" (microsoft/TypeScript#57683 (comment)) so this does not matter much, but this should be less confusing (#20056).

close #20056

@sapphi-red sapphi-red added the p2-nice-to-have Not breaking anything but nice to have (priority) label May 21, 2025
@patak-cat patak-cat merged commit 8424af3 into vitejs:main May 21, 2025
18 checks passed
@sapphi-red sapphi-red deleted the feat/create-vite-update-target-in-tsconfig-node-json branch May 22, 2025 01:21
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2-nice-to-have Not breaking anything but nice to have (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarification on ES Target vs Lib in templates' tsconfig.node.json

2 participants