Svelte compiler implemented in Rust. Aims for 100% compatibility with the official Svelte compiler.
Pipeline: Parse → Analyze → Transform
- svelte-ast: AST type definitions, ESTree serialization
- svelte-parser: Zero-copy parsing with OXC allocator, winnow-based template/CSS parser, OXC for JS/TS expressions
- svelte-analyzer: Semantic analysis (scope, bindings, validation)
- svelte-transformer: Code generation (JS/CSS output)
MIT