Skip to content

Bump TypeScript module output options target and lib to ES2022 #4507

Open
@MajorLift

Description

Motivation

Features

ES2022

  • Top-level await expressions -> not available to CJS modules
    • Important, because with moduleResolution set to node16, we can only reference ESM-only modules using dynamic import syntax, which becomes much easier to write with top-level await.

ES2021

  • String.prototype.replaceAll()
  • Promise.any()

Regressions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions