fix: bundle size limit - #10263
Conversation
📝 WalkthroughWalkthroughUpdated Vite/Rollup manualChunks in vite.config.mts to refine vendor bundling: split previous UI grouping, add a React cohort, extend SDKs (including Moralis), and introduce dedicated chunks for MetaMask, WalletConnect, KeepKey, and BNB SDK. Existing groupings and the exported config signature remain unchanged. Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Vite Build
participant Rollup as Rollup
participant MC as manualChunks()
participant Chunks as Output Chunks
Dev->>Rollup: start build
Rollup->>MC: resolve module id
MC-->>Rollup: match patterns<br/>ui | react | sdk | @metamask | @walletconnect | @keepkey | bnb-sdk | existing groups
Rollup->>Chunks: assign module to chunk
Dev-->>Chunks: emit bundled chunks
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
vite.config.mts(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*
📄 CodeRabbit Inference Engine (.cursor/rules/naming-conventions.mdc)
**/*: ALWAYS use appropriate file extensions
Flag files without kebab-case
Files:
vite.config.mts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Install and Cache
Description
Update chunks to reduce bundle size constraints.
Issue (if applicable)
N/A
Risk
Low
Testing
https://github.com/shapeshift/web/actions/runs/16916016971 is 🟢
Summary by CodeRabbit
Refactor
Chores