From d0b74fbb4ecd272254c8a3e71e76a0707b28cfa0 Mon Sep 17 00:00:00 2001 From: Amaresh S M Date: Wed, 25 Mar 2026 15:53:29 +0530 Subject: [PATCH] chore: update tsconfig target from es5 to es2022 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `target: "es5"` was a leftover from the original Create React App scaffold and has been misleading since the project migrated to Vite. Vite explicitly ignores `tsconfig.json` target — it uses `build.target` in vite.config.ts for actual browser output (defaulting to `baseline-widely-available`). The tsconfig target only affects: - What TypeScript's type-checker considers valid syntax - IDE autocompletion and inline error hints `es2022` aligns the tsconfig with what Vite actually emits, enables the correct `useDefineForClassFields: true` default, and removes misleading IDE signals that modern syntax is disallowed." --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index e2cb4b3a..11d36126 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es2022", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true,