From b831a8236086cb077ca2dc9a99a1daf6a1167a98 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Fri, 23 Aug 2024 21:11:45 -0400 Subject: [PATCH] Target ES2022 in vite config to align with tsconfig target (#610) --- vite.config.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.mts b/vite.config.mts index 6bee08ef2c..fd607a4953 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -114,7 +114,7 @@ export default defineConfig({ ], build: { minify: SHOULD_MINIFY ? 'esbuild' : false, - target: 'es2015', + target: 'es2022', sourcemap: true, rollupOptions: { // Disabling tree-shaking