mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
feat: add cross-platform support for Mac
This commit is contained in:
@@ -24,6 +24,11 @@ export default defineConfig({
|
|||||||
// to make use of `TAURI_DEBUG` and other env variables
|
// to make use of `TAURI_DEBUG` and other env variables
|
||||||
// https://tauri.studio/v1/api/config#buildconfig.beforedevcommand
|
// https://tauri.studio/v1/api/config#buildconfig.beforedevcommand
|
||||||
envPrefix: ["VITE_", "TAURI_"],
|
envPrefix: ["VITE_", "TAURI_"],
|
||||||
|
esbuild: {
|
||||||
|
supported: {
|
||||||
|
'top-level-await': true
|
||||||
|
},
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
// Tauri supports es2021
|
// Tauri supports es2021
|
||||||
target: process.env.TAURI_PLATFORM === "windows" ? "chrome105" : "safari13",
|
target: process.env.TAURI_PLATFORM === "windows" ? "chrome105" : "safari13",
|
||||||
|
|||||||
Reference in New Issue
Block a user