Read OSS

sveltejs/svelte

5 articles

Prerequisites

01

Svelte 5 Codebase Architecture: A Map for the Territory

A comprehensive orientation guide to the Svelte 5 monorepo — the dual compiler-plus-runtime architecture, conditional exports, internal ABI, feature flags, and the Markdown-driven error pipeline.

02

Inside the Svelte Compiler: From .svelte Source to JavaScript Output

A detailed walkthrough of the three-phase compiler pipeline — parsing with a state-machine parser, analyzing scopes and runes, and transforming ASTs into optimized JavaScript.

03

The Reactivity Engine: Sources, Deriveds, Effects, and the Batch Scheduler

A deep dive into Svelte 5's pull-based signal reactivity system — the three reactive primitives, bitwise flags, dependency tracking, the effect tree, dirty checking, and the batch scheduler.

04

DOM Rendering: Templates, Control Flow Blocks, and Hydration

How Svelte's compiled output creates and updates the DOM — template cloning, mount/hydrate entry points, control flow blocks, the hydration protocol, and the SSR Renderer class.

05

Supporting Systems: Reactive Utilities, Migration, Dev Tools, and Testing

The subsystems that complete the Svelte experience — reactive utility classes, Svelte 4→5 migration, store compatibility, dev-mode features, transitions, and the test infrastructure.