DEV Community

Discussion on: SVELTE. Will it ever have a chance against React.js?

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

I'm sure I heard on a podcast that the bundle size is only small in small Svelte apps, For bigger apps, the bundle size explodes in Svelte for whatever reason I have no idea.

Collapse
 
dennisfrijlink profile image
Dennis Frijlink

Hmmm fun fact for research. Thanks for saying

Collapse
 
raguay profile image
Richard Guay

I have a Svelte app that I first did in Vue.js. The current size is half what Vue.js application was, and I added several large features above what the Vue.js application had. So, I think the podcast you heard was exaggerating some. It hasn’t been my experience with Svelte so far.

Thread Thread
 
ivan_jrmc profile image
Ivan Jeremic

I think the creator of Svelte itself said this and he is aware of this and working on the problem, I will try to find the podcast.

Thread Thread
 
parallax18 profile image
JoshuaOkechukwu

I've also done some work with React.js and the same project with svelte. I can say the svelte version was smaller by Alot. I heard in a review that the virtual Dom as fancy as it sounds is just over head. You think that's true?

Collapse
 
giorgosk profile image
Giorgos Kontopoulos 👀 • Edited

There is an inflection point after which svelte might become bigger in size than react. github.com/halfnelson/svelte-it-wi... The author of this study says that the inflection point is around 120KB which is theoretically very difficult to pass. In simple terms the reason this happens is that react ships a big runtime but small individual components meanwhile svelte compiles to bigger js component code but virtually no runtime. So in theory the more components you put on a page the faster the bundle size grows for svelte but react bundle size does not grow as fast.