Skip to content

Update tsconfig lib version in tsconfig.dom.json #40

@connorshea

Description

@connorshea

"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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions