chore: target ES2021

Since we're now using Node.js >= 18, it is safe to target ES2021.

With features like optional chaining, null coalescing (assignment),
the compiler could emit shorter code, leading to smaller package size.
This commit is contained in:
CismonX 2024-04-02 08:51:01 +08:00
parent 3b3478decb
commit 3f8c23d917
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
*/
{
"compilerOptions": {
"target": "ES2019",
"target": "ES2021",
"outDir": "out",
"esModuleInterop": true,
"strictNullChecks": true,