mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-19 17:50:13 +00:00
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:
@@ -97,6 +97,12 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
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: {
|
rolldownOptions: {
|
||||||
output: {
|
output: {
|
||||||
entryFileNames: `assets/[name].[hash].js`,
|
entryFileNames: `assets/[name].[hash].js`,
|
||||||
|
|||||||
Reference in New Issue
Block a user