Skip to main content

Module source_map

Module source_map 

Source
Expand description

Source Map Generation

Implements Source Map v3 specification for mapping generated JavaScript back to original TypeScript source.

Format: https://sourcemaps.info/spec.html

Modules§

vlq
VLQ (Variable-Length Quantity) encoding module for source maps

Structs§

Mapping
A single mapping from generated position to original position
SourceMap
Source Map v3 output format
SourceMapGenerator
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.