Skip to content

Dependencies#685

Merged
pontusab merged 3 commits into
mainfrom
feature/optimize-dependencies
Dec 20, 2025
Merged

Dependencies#685
pontusab merged 3 commits into
mainfrom
feature/optimize-dependencies

Conversation

@pontusab
Copy link
Copy Markdown
Contributor

@pontusab pontusab commented Dec 19, 2025

Note

Introduce dynamic imports for heavy components/libs and enable optimizePackageImports, alongside upgrading Next to 16.1.0.

  • Performance/Code-splitting:
    • Dynamically load Canvas in src/components/chat/chat-interface.tsx.
    • Add GlobalSheetsProvider (src/components/sheets/global-sheets-provider.tsx) and use it in app/[locale]/(app)/(sidebar)/layout.tsx to lazy-load global sheets.
    • Lazy-load SearchAddressInput in src/components/forms/customer-form.tsx with a Skeleton fallback.
    • Defer loading of html2canvas and jspdf in src/utils/canvas-to-pdf.ts and src/utils/statement-to-pdf.ts via dynamic imports.
  • Config:
    • Enable experimental.optimizePackageImports for frequently used libs in apps/dashboard/next.config.ts.
  • Dependencies:
    • Upgrade next to 16.1.0 in apps/dashboard and apps/website.

Written by Cursor Bugbot for commit 130ec9d. This will update automatically on new commits. Configure here.

@pontusab pontusab force-pushed the feature/optimize-dependencies branch from 2e8629e to 130ec9d Compare December 20, 2025 13:02
@pontusab pontusab merged commit fc061d5 into main Dec 20, 2025
8 checks passed
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.

1 participant