mf-stats.json Field Reference
mf-stats.json is generated when manifest is enabled. It contains full build statistics, including exposes/shared/remotes assets, metaData (build info, remoteEntry, etc.), and asset analysis results.
Use this document to understand every field in mf-stats.json, which is helpful for debugging and analysis.
Top-level
metaData (Both Files)
metaData describes how this build is consumed at runtime and the build context. Both mf-stats.json and mf-manifest.json include it.
StatsMetaData
StatsMetaData has two mutually exclusive shapes:
- Function form:
getPublicPath: string - String form:
publicPath: string(optionalssrPublicPath: string)
Shared fields:
| Field | Type | Required | Description |
| ------------------- | ---------------- | -------- | ------------------------------------- | --- |
| name | string | Yes | Current remote/host name |
| globalName | string | Yes | Global name for the remoteEntry |
| buildInfo | StatsBuildInfo | Yes | Build information |
| remoteEntry | ResourceInfo | Yes | Remote entry resource |
| ssrRemoteEntry | ResourceInfo | No | SSR remote entry (if any) |
| prefetchInterface | boolean | No | Whether prefetch interface is enabled |
| prefetchEntry | ResourceInfo | No | Prefetch resource (if any) |
| types | MetaDataTypes | No | Types bundle info (if any) |
| type | string | Yes | APP | NPM |
| pluginVersion | string | No | MF Plugin version |
ResourceInfo
StatsBuildInfo
MetaDataTypes
assets (Both Files)
StatsAssets describes sync/async assets for a shared or exposed module. Both files use it.
StatsAssets
StatsAssetsInfo
shared
StatsShared
remotes
StatsRemote records remote consumption info. It always includes either entry or version.
StatsRemoteVal (shared fields)
StatsRemote (mutually exclusive)
entry: string(exists, then noversion)version: string(exists, then noentry)