DEV Community

The Svelte compiler: How it works

Joshua Nussbaum on February 14, 2020

Want to learn more about Svelte? I just launched a few short video courses ✨ Most front-end frameworks rely on a diffing engine that syncs the v...
Collapse
 
k_penguin_sato profile image
K-Sato • Edited

Thank you for this!! The official doc didn't really explain how it actually works in depth. (Or I simply missed it)
This was extremely informative!!

Collapse
 
fliponeup profile image
Oscar Lito M Pablo

Joshua, you may want to put your Svelte course on Udemy.com so you'll have a potentially-huge customer base and solves practicallly all your promotion challenges. Doing so also will help Svelte's exposure to more developers worldwide.

Collapse
 
sno2 profile image
Carter Snook

Well, looks like I have a lot more time to put into to try to recreate something like this for Deno 😅

Collapse
 
riviergrullon profile image
Rivier Grullon
Collapse
 
joshnuss profile image
Joshua Nussbaum

Go for it!

Reverse engineering is one of the best ways to learn things.

Collapse
 
sno2 profile image
Carter Snook • Edited

Well, after spending quite some time working on implementing this, I am probably going to first make this as a ssg with a couple of directives, then try to implement the same design fundamentals as my current one with. The compilation of the .svelte to .js for actual dom manipulation is very hard and doing it with the current module ecosystem that deno is quit an enigma to me 😂 Thanks for your encouraging words, though!

Thread Thread
 
realfakenerd profile image
Lucas A. Ouverney • Edited

Don't let your dreams be dreams, what are you waiting for? Just do it!

Collapse
 
opensas profile image
opensas

Excellent article, it's the most simple explanation I found about Svelte magic!

Collapse
 
the_one profile image
Roland Doda

OMG that is a GOLD article! I was looking on how Svelte does it's magic and this definitely explains so much! THANK YOU

Collapse
 
jamesyoung1337 profile image
James Young

Great post! Love it.

Collapse
 
oxharris profile image
Oxford Harrison

Awesome.

Collapse
 
anshumeena1947 profile image
Anshu Meena

wow! its really awesome thanks for this amazing article