Skip to content

Fix vendor chunk runtime crash from previous manualChunks split - #100

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

  • The previous manualChunks split (merged in Bump client/shared submodule to fix vite chunk size warning #99) separated react, @mui/material, react-admin/ra-core, and ra-ui-materialui into individual chunks. Those packages are tightly interdependent, and splitting them broke module init order, causing a runtime crash on load: Cannot read properties of undefined (reading '__esModule').
  • This bumps client/shared to the nra-client fix: react/MUI/react-admin/ra-core/ra-ui-materialui are kept together in one chunk again. Only xlsx and the @openobserve telemetry SDKs (which have no dependency on the framework stack) remain split out.
  • chunkSizeWarningLimit raised to 2700 to reflect the consolidated framework chunk's real size (~2.5 MiB) instead of chasing an arbitrary split that isn't safe.

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, no __esModule exception; page renders correctly (confirmed via screenshot)

Generated by Claude Code

Copilot AI review requested due to automatic review settings July 6, 2026 07:47
@buzz-code
buzz-code merged commit 3dc6bd3 into main Jul 6, 2026
1 of 2 checks 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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