perf(frontend): enable vite module preload (#39332)

`modulePreload: false` came in with the webpack to vite migration, when
chunks were cache-busted through import maps. With content-hashed chunks
that reason is gone. Vite's default makes every lazy import preload its
whole static dependency tree in parallel instead of the browser
discovering it one level per round trip, which renders lazy features like
mermaid, the code editor and the activity charts noticeably faster on
real-world latency without changing chunks or requests.

Assisted-by: Claude Code:claude-opus-5
This commit is contained in:
silverwind
2026-09-17 11:22:53 +02:00
committed by GitHub
parent f0d2195998
commit e77d3bffae
-1
View File
@@ -254,7 +254,6 @@ export default defineConfig(commonViteOpts({
},
},
build: {
modulePreload: false,
manifest: true,
rolldownOptions: {
input: {