[PR #5379] 🛠️ Moving loot-core to Vite #12959

Closed
opened 2026-04-10 21:43:25 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5379

State: closed
Merged: Yes


Warning

This is worth bringing the branch down and testing locally.

Main benefits:

  • Faster build time
  • Consistent build tooling (we no longer use both vite and webpack)

Todos

  • check the size of the loot-core bundle and make sure it's not massive - add screenshots of before and after to this pr
  • fix the api tests - no idea why they're broken - it seemed to work when I called it outside the test harness...
  • check web
  • check electron
    • Windows
    • Linux
    • Mac
  • check api
  • consolidate the vite versions
  • check different browsers/mobile - make sure updating the bundler hasn't made it incompatible
  • publish the api npm package and test it
  • check the sync-server (ideally via the npm package)

Old Browser loot-core size:
image

New Browser loot-core size:
image

Old API loot-core size:
image

New API loot-core size:
image

Old Electron size:
image

New Electron size:
image

**Original Pull Request:** https://github.com/actualbudget/actual/pull/5379 **State:** closed **Merged:** Yes --- <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> > [!WARNING] > This is worth bringing the branch down and testing locally. ## Main benefits: - Faster build time - Consistent build tooling (we no longer use both vite and webpack) ## Todos - [x] check the size of the loot-core bundle and make sure it's not massive - add screenshots of before and after to this pr - [x] fix the api tests - no idea why they're broken - it seemed to work when I called it outside the test harness... - [x] check web - [x] check electron - [x] Windows - [x] Linux - [x] Mac - [x] check api - [x] consolidate the vite versions - [x] check different browsers/mobile - make sure updating the bundler hasn't made it incompatible - [x] publish the api npm package and test it - [x] check the sync-server (ideally via the npm package) Old Browser loot-core size: <img width="689" height="173" alt="image" src="https://github.com/user-attachments/assets/717a2e36-c364-4964-a735-782250557228" /> New Browser loot-core size: <img width="653" height="161" alt="image" src="https://github.com/user-attachments/assets/7aa9a4b8-cc46-4424-9ee1-a07bfc5952ea" /> Old API loot-core size: <img width="674" height="183" alt="image" src="https://github.com/user-attachments/assets/db460913-3201-4453-9d3d-9d51ccd344c5" /> New API loot-core size: <img width="779" height="214" alt="image" src="https://github.com/user-attachments/assets/19545b80-81f4-48ea-8060-45bf80002c91" /> Old Electron size: <img width="662" height="139" alt="image" src="https://github.com/user-attachments/assets/2f3bc4f8-727a-4d62-82f0-b6b9e5c4f8c9" /> New Electron size: <img width="733" height="180" alt="image" src="https://github.com/user-attachments/assets/622496b9-4960-4061-bd2c-bf91d995d8ba" />
GiteaMirror added the pull-request label 2026-04-10 21:43:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#12959