Skip to content

Commit

Permalink
feat: Use esnext as build target
Browse files Browse the repository at this point in the history
to allow for top-level await
  • Loading branch information
GeckoEidechse committed Mar 1, 2025
1 parent 0dd2f4d commit 5cab90a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const host = process.env.TAURI_DEV_HOST;
export default defineConfig(async () => ({
plugins: [vue()],

build: {
target: 'esnext', // Needed for top-level await
},

// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
Expand Down

0 comments on commit 5cab90a

Please sign in to comment.