Skip to content

Split rich-text and misc leaf libs into own chunks - #101

Merged
buzz-code merged 1 commit into
mainfrom
claude/vite-chunk-size-warnings-kxhdue
Jul 6, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/vite-chunk-size-warnings-kxhdue

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Summary

  • Bumps client/shared (nra-client) to further split the vendor bundle: ra-input-rich-text and a handful of small standalone utilities (ra-data-nestjsx-crud, @nestjsx/crud-request, jewish-date, react-admin-json-view, stylis, stylis-plugin-rtl, file-saver) now get their own chunks.
  • These are all one-way leaves of the react/@mui/react-admin/ra-core/ra-ui-materialui framework bundle (depended on, never the other way around), so splitting them out can't reintroduce the circular-chunk crash fixed in Fix vendor chunk runtime crash from previous manualChunks split #100 — verified in a headless browser with no pageerror.
  • Total transferred bytes are unchanged (~3.0 MB); this only improves per-chunk cache granularity further.

Test plan

  • yarn build completes cleanly, no chunk-size warning
  • Served the build with vite preview and loaded it in a headless browser — no pageerror, page renders correctly

Generated by Claude Code

Copilot AI review requested due to automatic review settings July 6, 2026 08:13
@buzz-code
buzz-code merged commit 7f475ce into main Jul 6, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the client/shared submodule (nra-client) to refine the Vite/Rollup manualChunks strategy so certain “leaf” vendor libraries (rich-text + small utilities) are emitted as their own chunks, improving cache granularity without reintroducing the circular-chunk runtime crash addressed in #100.

Changes:

  • Bump client/shared submodule to nra-client@90bcd6b (from 8620e66).
  • In the bumped nra-client, expand manualChunks to add dedicated chunks for ra-input-rich-text and a small set of standalone utilities (while keeping the react/MUI/react-admin stack grouped together).

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.

3 participants