We compiled our TypeScript parser to WASM
2 months ago
- Encore determines application infrastructure by reading TypeScript code and provisions corresponding resources like APIs, databases, and Pub/Sub topics.
- The parser, written in Rust and compiled to WASM, now runs in browsers, enabling bug reproduction via code snippets and shared links without needing local projects.
- To function in browsers, filesystem dependencies were removed via Cargo features, and in-memory resolution replaces disk operations, with SDK files baked into the WASM binary.
- A playground at tsparser.encore.dev allows testing and sharing parser outputs, ensuring consistency across CLI, CI, and browser environments.