mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-12 19:38:11 -07:00
web: target older mobile browsers
This commit is contained in:
@@ -28,6 +28,10 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
plugins: [sveltekit()],
|
plugins: [sveltekit()],
|
||||||
build: {
|
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
|
// Force everything into one HTML file. SvelteKit will still generate
|
||||||
// a lot of JS files but they are deadweight and will not be included
|
// a lot of JS files but they are deadweight and will not be included
|
||||||
// in the rust binary.
|
// in the rust binary.
|
||||||
|
|||||||
Reference in New Issue
Block a user