#Major version bump to Astro5 from Astro4 slows down development server?

1 messages · Page 1 of 1 (latest)

pale locust
#

Upon upgrading to Astro5, development seems to be massive slow for the page loading,

09:25:55 [200] / 1802ms
09:26:01 [200] /about 1807ms
09:26:02 [200] /_image 487ms
09:26:04 [200] / 1810ms
09:26:07 [200] /contact 1846ms
09:26:14 [200] /blog 1814ms

I don't recall it being so slow... Deploying still makes the page slower though but i can't see why it's such a big difference as i don't have database

#

I must be doing something wrong.. i tried running a new project and it's taking 5ms for the page

knotty grove
#

has something to do with the <Sun> & <Moon> icons in your <ThemeToggle /> component

#

If you comment those out, your site is fast again

pale locust
#

Looks like lucide was causing the issue

#

All the page with icons regarding that would have that issue

#

🥹

knotty grove
#

maybe report it to the astro-lucide maintainer. Although I don't know for sure what caused the conflict.

#

I personally don't use icon packs. I just add svg files and import those

pale locust
#

lesser point of failure

#

thanks again!

clever badgeBOT
#
If your issue is resolved, please help by doing the following two steps:
  1. From the ellipses (3-dot menu) in the top-right corner of the post (not the first message), edit the tags to include the Solved tag.
  2. From the same ellipses, select Close Post.
    Your post will still be available to search and can be re-opened simply by replying in it. Closing a post moves it down with older posts, so we can more easily focus on issues that still need to be resolved.
    Thank you for your help!
stone wind
#

I made a PR to rewrite the lucide-astro package adding export paths for each icon to avoid perf issues like this

When it gets merged, you'll be able to import icons like this without slowdowns

---
import Moon from 'lucide-solid/icons/moon';
import Sun from 'lucide-solid/icons/sun';
---