Created
February 21, 2023 21:01
-
-
Save raineorshine/fce420464d1f716d0e85611c7a1b120c to your computer and use it in GitHub Desktop.
Minimum typescript configuration needed to use ESM modules and top-level await
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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