Transform: SourceMap
Functions, types, and exports for Transform: SourceMap.
Page outline
Source map interface (compatible with standard source map format)
import type { SourceMap } from "@palamedes/transform"
type SourceMap = {
version: number;
sources: string[];
sourcesContent?: (string | null)[];
names: string[];
mappings: string;
file?: string;
};
Properties
| Name | Type | Required |
|---|---|---|
version | number | Yes |
sources | string[] | Yes |
sourcesContent | (string | null)[] | No |
names | string[] | Yes |
mappings | string | Yes |
file | string | No |
Last updated: November 1, 2026