Skip to content

Split UI bundle by route with lazy-loaded chunks - #16

Closed
michaelneale wants to merge 1 commit into
mainfrom
ui-bundle-split
Closed

michaelneale wants to merge 1 commit into
mainfrom
ui-bundle-split

Conversation

@michaelneale

Copy link
Copy Markdown
Collaborator

Rebased and conflict-resolved version of #13 (from @i386). Splits the monolithic JS bundle into 3 lazy-loaded chunks (main 214KB, chat-markdown 344KB, dashboard-topology 373KB).

Added our post-PR13 changes: remarkMath, mermaid/katex renderers, streaming prop to chat component. Added PR#11 row layout fix to topology component.

Parking as draft — marginal improvement (~100KB gzip savings) for added complexity. May revisit if bundle size becomes a real issue.

Cherry-picked from i386/codex/split-javascript-bundle-by-route with conflict
resolution. Adds remarkMath, mermaid/katex renderers, streaming prop to the
extracted chat-markdown component. Adds PR#11 row layout fix to the extracted
topology component. Adds remark-math to vite manualChunks config.

Co-authored-by: James Dumay <jameswdumay@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants