Skip to content

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

NameTypeRequired
versionnumberYes
sourcesstring[]Yes
sourcesContent(string | null)[]No
namesstring[]Yes
mappingsstringYes
filestringNo

Source entry on GitHub

Last updated: November 1, 2026