Skip to content

feat: upgrade cad-viewer to v1.5.11 and lazy-load for faster startup - #1

Merged
mlightcad merged 1 commit into
mainfrom
feat/upgrade-1.5.11-lazy-load
Aug 11, 2026
Merged

feat: upgrade cad-viewer to v1.5.11 and lazy-load for faster startup#1
mlightcad merged 1 commit into
mainfrom
feat/upgrade-1.5.11-lazy-load

Conversation

@mlightcad

@mlightcad mlightcad commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Upgrade @mlightcad/cad-* packages from 1.5.10 to 1.5.11
  • Lazy-load the CAD viewer (and install i18n) only when opening a drawing, with idle prefetch and a preparing overlay
  • Mirror open-mode enums locally and switch FileUpload to emits so the upload screen stays out of the viewer bundle; add Vite manualChunks for three / three-renderer / data-model

Test plan

  • pnpm install and pnpm dev — upload screen loads without pulling the full CAD stack first
  • Open a DWG/DXF file and create a new drawing; viewer mounts correctly with chosen open options
  • Confirm preparing overlay appears on slow networks and idle prefetch makes a later open feel faster
  • pnpm build succeeds; check chunk names include three, three-renderer, data-model

Defer CAD viewer imports until open, split heavy chunks, and keep the upload screen free of the viewer stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mlightcad mlightcad self-assigned this Aug 11, 2026
@mlightcad mlightcad added the enhancement New feature or request label Aug 11, 2026
@mlightcad
mlightcad merged commit 8e9829f into main Aug 11, 2026
2 checks passed
@mlightcad
mlightcad deleted the feat/upgrade-1.5.11-lazy-load branch August 11, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant