From 3f8c23d917486b79e1b209ff7617a8e11c18e286 Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 2 Apr 2024 08:51:01 +0800 Subject: [PATCH] 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. --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index bba6919..a01ba0c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ */ { "compilerOptions": { - "target": "ES2019", + "target": "ES2021", "outDir": "out", "esModuleInterop": true, "strictNullChecks": true,