Svelte

feat: allow declarations in the template

#18282

Closing issue

Pull request

Merged
D
dummdidumm
May 24, 2026, 8:49 PM

Allows {let/const ...} declarations in all places (and more) where we already allow {@const ...} (which will eventually get deprecated in favor of this new feature).

Closes:

Companion PRs:

❤️ 30🚀 29

Info

Merged at May 29, 2026, 12:05 PM
Merged by dummdidumm
Assignees None
Reviewers None
Labels None
Milestone None

Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)