Target ES2022 in vite config to align with tsconfig target (#610)

This commit is contained in:
Chenlei Hu
2024-08-23 21:11:45 -04:00
committed by GitHub
parent d232e38c33
commit b831a82360

View File

@@ -114,7 +114,7 @@ export default defineConfig({
],
build: {
minify: SHOULD_MINIFY ? 'esbuild' : false,
target: 'es2015',
target: 'es2022',
sourcemap: true,
rollupOptions: {
// Disabling tree-shaking