feat: add cross-platform support for Mac

This commit is contained in:
AuroraZiling
2023-10-25 13:12:59 +08:00
parent 6792c0ac0a
commit 1bcc5a625b

View File

@@ -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",