Skip to content

Instantly share code, notes, and snippets.

@raineorshine
Created February 21, 2023 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raineorshine/fce420464d1f716d0e85611c7a1b120c to your computer and use it in GitHub Desktop.
Save raineorshine/fce420464d1f716d0e85611c7a1b120c to your computer and use it in GitHub Desktop.
Minimum typescript configuration needed to use ESM modules and top-level await
{
"includes": ["*.ts"],
"compilerOptions": {
// es modules
"module": "es2022",
"moduleResolution": "node",
// top-level await
"target": "es2022"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment