Skip to content

Commit

Permalink
refactor: Re-order vite config entries
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Mar 2, 2025
1 parent fffa239 commit 7868c4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src-vue/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ const host = process.env.TAURI_DEV_HOST;

// https://vitejs.dev/config/
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 All @@ -33,4 +27,10 @@ export default defineConfig(async () => ({
ignored: ["**/src-tauri/**"],
},
},

build: {
// Tauri supports es2022
target: ['es2022'],
},
plugins: [vue()]
}));

0 comments on commit 7868c4a

Please sign in to comment.