From 9a01a51d565279390e58f9e78ed327749d140242 Mon Sep 17 00:00:00 2001 From: jubnl Date: Fri, 22 May 2026 16:25:39 +0200 Subject: [PATCH] fix(build): re-enable modulePreload polyfill for Safari < 17 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disabling the polyfill broke chunk loading order on iOS 15 (Safari 15), which does not support native modulepreload. The trip planner page — the heaviest chunk graph in the app — went blank after the splash screen because react-leaflet/react-leaflet-cluster chunks resolved out of order. Other simpler pages were unaffected. The polyfill adds ~500 bytes and self-disables in browsers with native support. Fixes #1028 --- client/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/vite.config.js b/client/vite.config.js index 0d85df86..ea017597 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -90,7 +90,7 @@ export default defineConfig({ ], build: { sourcemap: false, - modulePreload: { polyfill: false }, + modulePreload: { polyfill: true }, }, server: { port: 5173,