web: target older mobile browsers

This commit is contained in:
DeoJin
2026-03-18 06:34:48 +01:00
committed by Cooper Quintin
parent 5fc6925d35
commit a8aae16fa1

View File

@@ -28,6 +28,10 @@ export default defineConfig({
},
plugins: [sveltekit()],
build: {
// Keep the generated bundle compatible with older mobile browsers.
// The default Vite target follows a modern baseline that can be too new
// for older iOS Safari releases reported in issue #903.
target: ['es2018', 'safari12'],
// Force everything into one HTML file. SvelteKit will still generate
// a lot of JS files but they are deadweight and will not be included
// in the rust binary.