From 9f2f6d9d29d104ec74ef30e1128830e5e5a6a296 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:44:52 +0800 Subject: [PATCH] Set build target to safari15 for iOS Safari compatibility (#76) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 02bda37..23f21e5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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`,