References — fw-06 Template and JSX Compilers
Primary sources first. Read the real implementation after you have written yours, never before.
Parsing and ASTs
- AST Explorer — paste code, see the tree, for every parser mentioned here. The single most useful tool in this module.
- ESTree specification — the AST shape JavaScript tooling agrees on
- Acorn — small, readable JS parser
- Babel plugin handbook — the best introduction to visitors and transforms anywhere
Real compilers to read
@vue/compiler-core— parse → transform → codegen, cleanly separated.transforms/is where the optimisations live (static hoisting, patch flags).- Svelte compiler — the most aggressive position: compile the framework away
- Babel JSX transform — including the automatic runtime
- React Compiler — memoisation inferred rather than written; the newest entry in this design space
Source maps
- Source Map specification — now on a standards track
@jridgewell/gen-mappingandtrace-mapping— the modern implementations- Source Map Visualization — Evan Wallace's tool; invaluable when your mappings are wrong
Related modules
- fw-07 — Bundler — where the compiler output gets linked together
- fw-05 — Vue renderer — compiler-informed fast paths
- fe-39 — Build tooling (planned) — the architectural comparison of bundlers
When a claim here proves stale, record it in PROGRESS.md section 7.