Skip to content

Commit 7868c4a

Browse files
committed
refactor: Re-order vite config entries
1 parent fffa239 commit 7868c4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src-vue/vite.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ const host = process.env.TAURI_DEV_HOST;
66

77
// https://vitejs.dev/config/
88
export default defineConfig(async () => ({
9-
plugins: [vue()],
10-
11-
build: {
12-
target: 'esnext', // Needed for top-level await
13-
},
14-
159
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1610
//
1711
// 1. prevent vite from obscuring rust errors
@@ -33,4 +27,10 @@ export default defineConfig(async () => ({
3327
ignored: ["**/src-tauri/**"],
3428
},
3529
},
30+
31+
build: {
32+
// Tauri supports es2022
33+
target: ['es2022'],
34+
},
35+
plugins: [vue()]
3636
}));

0 commit comments

Comments
 (0)