chore: bump build config to use es2022, allows top-level await

This commit is contained in:
Danish Arora 2025-04-22 10:53:14 +05:30
parent 3414dfeae3
commit 88ee3ba97f
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

View File

@ -19,4 +19,7 @@ export default defineConfig(({ mode }) => ({
"@": path.resolve(__dirname, "./src"),
},
},
build: {
target: 'es2022',
}
}));