-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Lines 4 to 11 in 4a223b2
| "lib": [ | |
| // Target ES2020 to align with Vite. | |
| // <https://vite.dev/config/build-options.html#build-target> | |
| // Support for newer versions of language built-ins are | |
| // left for the users to include, because that would require: | |
| // - either the project doesn't need to support older versions of browsers; | |
| // - or the project has properly included the necessary polyfills. | |
| "ES2020", |
This file says that ES2020 is used to align with vite:
{
"lib": [
// Target ES2020 to align with Vite.
// <https://vite.dev/config/build-options.html#build-target>
// Support for newer versions of language built-ins are
// left for the users to include, because that would require:
// - either the project doesn't need to support older versions of browsers;
// - or the project has properly included the necessary polyfills.
"ES2020",
]
}But Vite uses "baseline" in Vite 7, which means it supports ES syntax from around 2.5 years (30 months) ago. Should probably bump this to ES2022 now?
Tamas-hi and Slessi
Metadata
Metadata
Assignees
Labels
No labels