I'm trying out various frameworks and libraries for several new projects, and really appreciate the page on Vue's site comparing it to other alternatives.
Since I've been focused primarily on Riot, the comparison to it was especially useful. But while I enjoy working in Riot, I've run into some frustrations around the very limited template language, especially the inherent limitations of attribute-based conditionals and loops (vs. actual blocks that can contain multiple elements).
I've been looking at Svelte as an alternative and really like both it's syntax for conditionals and loops in templates and its approach of pre-compiling templates to plain old Javascript. Since I'm new to Vue, I'd love to read some opinions from people familiar with both about how they compare.
I'm not an expert on Svelte, but it seems to share a lot of design philosophies with Vue, which I really enjoyed. I think the feature that makes it stand out for most people is that is compiles itself away. That's a really interesting idea and I can recommend browsing the source as an educational opportunity, but I don't see the feature itself as more than a gimmick right now. In the applications large enough to really start worrying about the size, Vue itself will already be such a small part of the total build.
Some other noteworthy differences:
I hope that helps and I apologize if any part is inaccurate. I'm sure there are also many other differences, but that's off the top of my head.
Closing for now, as Svelte might still be a little too niche to spend time on a comparison. 馃檪
In my opinion Svelte right now is not a niche solution. It's very close to Vue but much faster, and for several projects, I choose Svelte (and for future too).
Most helpful comment
I'm not an expert on Svelte, but it seems to share a lot of design philosophies with Vue, which I really enjoyed. I think the feature that makes it stand out for most people is that is compiles itself away. That's a really interesting idea and I can recommend browsing the source as an educational opportunity, but I don't see the feature itself as more than a gimmick right now. In the applications large enough to really start worrying about the size, Vue itself will already be such a small part of the total build.
Some other noteworthy differences:
I hope that helps and I apologize if any part is inaccurate. I'm sure there are also many other differences, but that's off the top of my head.