firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.13k stars 185 forks source link

Bundle size is huge #588

Closed OskarGroth closed 6 months ago

OskarGroth commented 9 months ago

Because the only way to import the package is via the umbrella export:

https://github.com/firecmsco/firecms/blob/029f3f641be99d6241a4ad827190e8a4ccea5cbe/lib/src/index.ts

The resulting import for just some types is huge:

Screenshot 2023-11-08 at 11 42 22

Any plans to address this?

fgatti675 commented 6 months ago

Hi Oskar, Thank you for the feedback :) FireCMS is a fairly complex app, and all the features are required in one way or another. In version 3.0 we have removed MUI and emotion from the equation and replaced it with tailwind which already helps. We are working on dynamic lazy imports which will also be beneficial for code splitting.