Skip to content

Commit 2ed7da6

Browse files
authored
day 18 (#1038)
1 parent ca13b39 commit 2ed7da6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apps/svelte.dev/content/blog/2024-12-01-advent-of-svelte.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,14 @@ We just fixed that. Install the latest version of Svelte in your project, make s
142142

143143
- [demo video](https://bsky.app/profile/svelte.dev/post/3ldjajjbkwc2n)
144144

145-
## Day 18
145+
## Day 18: playground hovers
146146

147-
Coming soon!
147+
If you've ever wondered how the Svelte compiler works, today's update is for you. If you go to the [playground](/playground) and open the AST output tab, you'll see the abstract syntax tree that the compiler operates on. As of today, hovering over code in the editor will highlight the corresponding section of the AST and vice versa. Clicking on a piece of code will expand the tree and scroll to the AST.
148+
149+
The JS and CSS output tabs have also been upgraded — they now use sourcemaps to highlight the output code that corresponds to a given piece input, where applicable, and vice versa. We plan to use this to improve the sourcemaps themselves, which over time will result in smoother debugging when you're building Svelte apps.
150+
151+
- [playground](/playground)
152+
- [demo video](https://bsky.app/profile/svelte.dev/post/3ldlkmce6oc2j)
148153

149154
## Day 19
150155

0 commit comments

Comments
 (0)