sveltejs Profile Banner
Svelte Profile
Svelte

@sveltejs

Followers
96K
Following
611
Media
99
Statuses
1K

Web development for the rest of us

pkg.devDependencies
Joined November 2016
Don't wanna be here? Send us removal request.
@sveltejs
Svelte
1 year
....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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
Tweet card summary image
svelte.dev
Configuration โ€ข SvelteKit documentation
7
9
116
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
note: you can migrate automatically using the following command npx sv migrate app-state
3
1
73
@sveltejs
Svelte
1 year
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
Tweet card summary image
svelte.dev
4
14
149
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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)
Tweet card summary image
svelte.dev
Web development for the rest of us
6
10
139
@SvelteSociety
Svelte Society ๐Ÿงก
1 year
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.
Tweet card summary image
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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
Tweet card summary image
svelte.dev
Hooks โ€ข SvelteKit documentation
6
13
139
@sveltejs
Svelte
1 year
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
@sveltejs
Svelte
1 year
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