diff --git a/vite.config.ts b/vite.config.ts index 8733815f..aeb7612c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,6 +24,11 @@ export default defineConfig({ // to make use of `TAURI_DEBUG` and other env variables // https://tauri.studio/v1/api/config#buildconfig.beforedevcommand envPrefix: ["VITE_", "TAURI_"], + esbuild: { + supported: { + 'top-level-await': true + }, + }, build: { // Tauri supports es2021 target: process.env.TAURI_PLATFORM === "windows" ? "chrome105" : "safari13",