Skip to main content

Function: toModuleMapManifest()

toModuleMapManifest(graph): object

Defined in: packages/contracts/src/pluginModule.ts:122

module-map.json manifest: the signed metadata of the graph without any source payload (§6.2). records are sorted by id for reproducibility.

Parameters​

graph​

entry​

string = ...

Package-relative entry module id (§6.2).

pluginId​

string = ...

records​

object[] = ...

Returns​

object

entry​

entry: string

pluginId​

pluginId: string

records​

records: Omit<{ dependencyPackage?: string; digest: string; exports: string[]; id: string; imports: string[]; kind: "js" | "json"; location: string; resolvedImports: {[key: string]: string; }; source?: string; }, "source">[]