#Simple react bundle "dist/client/_astro/client.502e3c6a.js" is too large 135kb, is that okay?

4 messages · Page 1 of 1 (latest)

velvet steppe
#

I'm learning Astro and compare it with Remix. I have a react component which I use in both apps, same component with minimal adjustments. Single page, single component/island.

In Remix my js bundle is 78kb, while in astro its 150kb. I know it depends, but is that expected that size of bundle is such different? I would expect Astro to always be smaller, is there some optimization in Astro which I need to look at?

Thanks!

velvet steppe
uncut crescent
#

I don't know what remix does but react+react-dom alone are 140kb+
Astro doesn't touch the framework code so there nothing actionable here

velvet steppe