3 ms·
Do you know where to find docs on what svelte actually compiles to? I’m curious how they store/reference/update dom nodes in the compiler output.
by jsf01 7y ago
Do you know where to find docs on what svelte actually compiles to? I’m curious how they store/reference/update dom nodes in the compiler output.
- PKop 7y agoThis[0] (2-part blog entry) is a good write-up of what's going on, by a svelte contributor. Also, as suggested by the author, taking the tutorial[1] is useful (and the repl generally) to see what's going on. In the repl, look at the "JS output" tab. Play around with it to see what the compiler outputs. [0] https://lihautan.com/compile-svelte-in-your-head-part-1/ https://lihautan.com/compile-svelte-in-your-head-part-1/ [1] https://svelte.dev/tutorial/basics https://svelte.dev/tutorial/basics
- PKop 7y agoAnother good one https://lihautan.com/the-svelte-compiler-handbook/ https://lihautan.com/the-svelte-compiler-handbook/