Set build target to safari15 for iOS Safari compatibility (#76)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot
2026-07-02 17:44:52 +08:00
committed by GitHub
parent 8d58f41856
commit 9f2f6d9d29
+6
View File
@@ -97,6 +97,12 @@ export default defineConfig({
},
},
build: {
// Target older Safari versions (iOS 15/16) explicitly, since Vite's
// default "widely-available browsers" target only covers the latest
// two major Safari releases and would otherwise emit syntax that
// crashes on older WebKit engines (white screen on load).
target: ["es2020", "safari15"],
cssTarget: ["safari15"],
rolldownOptions: {
output: {
entryFileNames: `assets/[name].[hash].js`,