Re:The Svelte Compiler Handbook
by Trufa on Sunday April 05, 2020 @12:08PM
(#22786377)
Yes, that's currently what I'm experimenting with.
This is very early stages and completely experimental.
The idea I'm experimenting is to compile typescript to another form, I completely see your point about too verbose though, but I'm also toying around with jsx.
Basically what I'm trying to do is a svelte where instead of this:
{#each cats as { id, name }, i}
<li>
<a target="_blank" href="https://www.youtube.com/watch?v={id}">
{i + 1}: {name}
</a>
</li>
{/each}
You have have the native JavaScript map functions and so on.
Again, this is completely in the early stages and just playing around until something feels right.
This is very early stages and completely experimental.
The idea I'm experimenting is to compile typescript to another form, I completely see your point about too verbose though, but I'm also toying around with jsx.
Basically what I'm trying to do is a svelte where instead of this:
You have have the native JavaScript map functions and so on.Again, this is completely in the early stages and just playing around until something feels right.
Any recommendations appreciated.