Repository navigation
Commit 09cbd85
fix(pages): collect CSS from dynamicImports to prevent FOUC
collectPagesManifestFiles only traversed chunk.imports, missing CSS
from dynamically imported modules like layouts. Since layouts are
listed under dynamicImports in the Vite manifest, their CSS was never
injected as <link rel="stylesheet"> in <head>, causing a flash of
unstyled content on every page load.
Now traverses both imports and dynamicImports so layout CSS is
included in the initial HTML response.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1686bba commit 09cbd85
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
713 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
0 commit comments