mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 06:11:45 +00:00
fix(build): re-enable modulePreload polyfill for Safari < 17 compatibility
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
This commit is contained in:
@@ -90,7 +90,7 @@ export default defineConfig({
|
||||
],
|
||||
build: {
|
||||
sourcemap: false,
|
||||
modulePreload: { polyfill: false },
|
||||
modulePreload: { polyfill: true },
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user