Merge pull request #53 from AuroraZiling/master

feat: add cross-platform support for Mac
This commit is contained in:
目棃
2023-10-25 17:23:56 +08:00
committed by GitHub

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