feat: reduce frontend bundle size with tree shaking and dependency audit#422
Open
od-hunter wants to merge 1 commit into
Open
feat: reduce frontend bundle size with tree shaking and dependency audit#422od-hunter wants to merge 1 commit into
od-hunter wants to merge 1 commit into
Conversation
- Add @next/bundle-analyzer with ANALYZE=true script for bundle visibility - Configure next.config.ts: transpilePackages for Web3 libs, optimizePackageImports for lucide-react/framer-motion/all Radix UI packages, Node.js polyfill fallbacks - Lazy-init @web3auth/modal via getWeb3Auth() async fn — removes ~500KB from initial bundle; SDK only loads on first social login click - Scope WagmiProvider + QueryClientProvider to dashboard routes only via DashboardProviders — landing page no longer loads wagmi/viem - Convert landing page (app/page.tsx) to Server Component; extract animated sections into minimal client islands (HeroCTA, HeroAnimations) - Dynamically import Sidebar, Header, PWAWrapper in dashboard layout - Dynamically import SocialLogin and WalletConnect on auth page with skeleton fallbacks so Web3 SDK is deferred until tab renders - Replace framer-motion motion.div entrance animations in all dashboard pages with zero-JS CSS FadeIn component (animate-fade-in-up keyframe) - Fix web3auth logout: use provider check instead of non-existent .connected prop - Fix auth page provider race: DashboardProviders is static import so WagmiProvider is mounted before WalletConnect calls useConnect() - Remove unused DashboardInvoice import and dead handleSubmitWork function
|
@od-hunter is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@od-hunter Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #380
#380