Expand description
Source Map Generation
Implements Source Map v3 specification for mapping generated JavaScript back to original TypeScript source.
Modules§
- vlq
- VLQ (Variable-Length Quantity) encoding module for source maps
Structs§
- Mapping
- A single mapping from generated position to original position
- Source
Map - Source Map v3 output format
- Source
MapGenerator - Builder for source maps
Functions§
- base64_
encode - Base64 encode a byte slice
- escape_
js_ string - Escape a JavaScript string literal (single or double quoted) SIMD-optimized with memchr for bulk scanning
- escape_
json - Escape a string for JSON output SIMD-optimized JSON string escaping Uses memchr to find escape-worthy bytes in bulk, then copies safe chunks via memcpy. 5-10x faster than char-by-char iteration for typical strings.