fix(guides): move {@const} out of <div> to fix Svelte 5 build error

Svelte 5 requires {@const} to be a direct child of block elements
({#snippet}, {:else}, {#each}, etc.), not inside plain HTML elements
like <div>. The guides DetailView had it inside <div class="meta">,
which broke the production build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-10 18:45:37 +02:00
parent 97610a08f8
commit a8da25c931

View file

@ -139,8 +139,8 @@
</div>
{:else}
<!-- Guide metadata -->
{@const catInfo = GUIDE_CATEGORIES[guide.category]}
<div class="meta">
{@const catInfo = GUIDE_CATEGORIES[guide.category]}
<div class="meta-badges">
<span class="badge {catInfo.color}">{catInfo.label}</span>
<span class="badge bg-white/10">{DIFFICULTY_LABELS[guide.difficulty]}</span>