manifest.json is the manifest file generated by the Esmx framework during the build process, used to record build artifact information. It provides a unified interface to manage build artifacts, export files, and resource statistics.
interface ManifestJson {
name: string;
scopes: Record<string, Record<string, string>>;
exports: ManifestJsonExports;
files: string[];
chunks: ManifestJsonChunks;
}stringRecord<string, Record<string, string>>ImportMap scope mapping, where keys are scope prefixes and values are specifier -> resolved mappings for runtime path-based dependency resolutionManifestJsonExportsstring[]ManifestJsonChunkstype ManifestJsonExports = Record<string, ManifestJsonExport>;Export item configuration mapping, where the key is the export path and the value is the export item information.
interface ManifestJsonExport {
name: string;
pkg: boolean;
file: string;
identifier: string;
}stringbooleanstringstringtype ManifestJsonChunks = Record<string, ManifestJsonChunk>;Compiled file information mapping, where the key is the source file and the value is the compilation information.
interface ManifestJsonChunk {
name: string;
js: string;
css: string[];
resources: string[];
}stringstringstring[]string[]