MisterMunchkin / mom-and-me-clinic

A Website for Mom and Me Clinic
https://momandme.clinic/
1 stars 0 forks source link

Optimize Bundle Size #67

Open MisterMunchkin opened 1 year ago

MisterMunchkin commented 1 year ago

Our bundle size is getting way too big for what we have implemented. Screenshot 2023-11-10 at 9 37 45 AM

I ran a bundle analyzer and it looks like material-tailwind takes up way too much space. We don't really need material tailwind anymore. We can swap it with shadcn components instead.

Screenshot 2023-11-10 at 9 37 02 AM

How I propose we do this would be to search for all material-tailwind references, find the used components, and then swap them for shadcn components. Run bundle analyzer to make sure we actually did something.

@heroicons also seem way too big, but we do use it in a lot of places so lets focus on material tailwind for now

MisterMunchkin commented 1 year ago

We can also remove swr since its not being used anymore

MisterMunchkin commented 1 year ago

We can also move some deps to dev deps instead: https://chat.openai.com/share/61f463d6-1776-412f-b633-2b37fc0604c0