Svelte
@sveltejs
Followers
96K
Following
611
Media
99
Statuses
1K
Web development for the rest of us
pkg.devDependencies
Joined November 2016
....and that's a wrap for this year. Thanks for following along, everyone! There's a bunch of stuff that we didn't quite manage to squeeze in this month, so keep an eye out in 2025 for more good things. Merry Christmas to all who celebrate!
4
0
97
Day 24 โ Svelte now handles `class` attributes with https://t.co/sg392L8HCj. Much more powerful than the `class:` directive, but since this is Svelte you still get dead code elimination of unused styles! ๐ docs https://t.co/SMBZfI3CbJ ๐ demo https://t.co/u9TdfmINvi
4
14
130
Day 23 โ you can now download your playground creations as SvelteKit apps! It'll even include any dependencies you've imported ๐ https://t.co/R5dbLMUonS
2
5
104
Day 22 โ you can now use the `bundleStrategy: 'inline'` option to build an entire SvelteKit app โ code, styles, fonts, images, audio, and so on โ into a single `.html` file that you can share on a floppy disk ๐ docs https://t.co/jL6j6ee9lv ๐ demo https://t.co/0Yihvnk6bi
12
14
165
Day 21 โ hash-based routing for SvelteKit apps, for when you don't need (or can't run) a server. You can't use any server-side logic (including SSR), but other than, it's just like any other SvelteKit app ๐ docs https://t.co/xPc9anB05d ๐ demo
svelte.dev
Configuration โข SvelteKit documentation
7
9
116
Day 20 โ Vim mode! You can enable it in the playground and tutorial and it will remember your preference between visits. Don't worry, you can always quit by turning it off again (or closing the tab) ๐ https://t.co/uNFslMXqOw
3
5
82
Day 19 โ single-file bundles for SvelteKit. By default, your apps use code-splitting to ensure that you only load the code for the current page. But sometimes you need a single bundle for the whole app. Introducing the `bundleStrategy` option: ๐ docs https://t.co/jL6j6ee9lv
4
8
106
Day 18 โ we've upgraded the playground so you can better understand how the compiler transforms your code. We plan to use this tool ourselves to improve the sourcemaps that Svelte generates ๐ https://t.co/uNFslMXYE4
6
5
102
Day 17 โ until today, intellisense would often fail when you were in the middle of writing components, because Svelte's parser crashed on syntax errors. We just fixed that. Install svelte@latest, make sure your extensions are up to date, and feel the wind in your hair
5
10
176
note: you can migrate automatically using the following command npx sv migrate app-state
3
1
73
Day 16 โย `$app/state`, a modern Svelte 5 state-based replacement for SvelteKit's `$app/stores` module. No more clunky `$` prefix when accessing values, just fine-grained state that works everywhere ๐ docs https://t.co/DRzyNnbIqV ๐ tutorial
svelte.dev
4
14
149
Day 15 โ the new `$inspect.trace(...)` rune gives you debugging superpowers. Add it to a function that runs inside a derived or effect, and you'll see detailed information about what caused it to re-run ๐ docs https://t.co/0XjzE8WfbW() ๐ demo https://t.co/Ea8F54Ic7r
3
8
107
Day 14 โ if you need to programmatically mount and unmount a component, you can now pass an `outro: true` option to `unmount` to play transitions before it is removed from the DOM ๐ docs https://t.co/YW2C528EIY ๐ demo https://t.co/TLOaSaPr16
4
15
141
Day 13 โ a gift for the robot friend in your life. We now publish llms.txt files containing up-to-the-minute documentation for Svelte, SvelteKit and the CLI in AI-digestible form ๐ docs https://t.co/hQB4YypimU ๐ demo (a snake game made by Sonnet 3.5)
svelte.dev
Web development for the rest of us
6
10
139
We are very excited to announce that the next Svelte Summit will finally be in-person again and happen on May 8 and 9, 2025 in Barcelona Spain! Tickets are now available and the CFP is open. Use code 'sveltmas2024' for a 20% discount until December 31.
sveltesummit.com
The next in-person Svelte Summit will happen on May 8 and 9 in Barcelona, Spain! Get your tickets and submit your proposals now!
5
14
93
Day 12 โ send custom types across the network boundary in SvelteKit, whether it's a class containing reactive state, a class used by your database ORM library, or whatever ๐ docs https://t.co/7Zf6uOlvnS ๐ demo https://t.co/T38tT02DBh
4
9
102
Day 11 โ a whole new module, for getting reactive views of window properties like innerWidth, innerHeight, scrollX, scrollY and so on. Like the bindings on <svelte:window> but with less boilerplate ๐ docs https://t.co/kCXhAQfyl3 ๐ demo https://t.co/jUqIAv4qDa
3
10
148
Day 10 โ a lot of you wanted a place to put async setup work that happens before your SvelteKit app starts up. You can now export an `init` function from `hooks.server.js` and `hooks.client.js` that will be awaited before any other stuff happens ๐ docs
svelte.dev
Hooks โข SvelteKit documentation
6
13
139
Day 9 โ warnings and errors emitted by the compiler, or while your app is running, are now accompanied by links to the docs. Over time, we'll flesh out these docs with more details about what caused the error in question ๐ demo https://t.co/tS74Mte2DX
2
8
120
Day 8 โ we're calling this 'function bindings'. You know how you can do `bind:value={value}`? You can now do this... bind:value={getValue, setValue} ...which lets you transform and validate data ๐ docs https://t.co/QoJNcUnjXT ๐ demo https://t.co/nRF0FcIy8t
8
15
205