MCPcopy
hub / github.com/unjs/unplugin / SourceMapCompact

Interface SourceMapCompact

src/types.ts:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37export type Arrayable<T> = T | Array<T>
38
39export interface SourceMapCompact {
40 file?: string | undefined
41 mappings: string
42 names: string[]
43 sourceRoot?: string | undefined
44 sources: string[]
45 // In magic-string v0.27.0, `sourcesContent` becomes nullable, while rollup haven't catch up yet
46 sourcesContent?: (string | null)[] | undefined
47 version: number
48}
49
50export type TransformResult = string | { code: string, map?: SourceMapInput | SourceMapCompact | null | undefined } | null | undefined | void
51

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected