콘텐츠로 이동

ModuleFederationConfig

Defined in: core/index.ts:843

Module Federation config block (#3318 P1-0). A record shape isomorphic to the webpack/rspack ModuleFederationPlugin — targeting the @module-federation/runtime contract. P1-0 is zntc.config parsing & validation only (emit not wired up; consumed in P1-1+; build()/NAPI mf extraction is also P1-1+). The shared array/boolean shorthand is P1-1+ — P1-0 only supports record-of-object.

optional exposes?: Record<string, string>

Defined in: core/index.ts:847

Exposed modules: { "./Widget": "./src/Widget.tsx" }.


optional name?: string

Defined in: core/index.ts:845

remote identifier. Required when using exposes/remotes.


optional remotes?: Record<string, string>

Defined in: core/index.ts:849

Consumed remotes: { remoteA: "remoteA@https://…/mf-manifest.json" }.


optional shared?: Record<string, MfSharedConfig>

Defined in: core/index.ts:852

Shared dependencies: { react: { singleton: true, requiredVersion: "^18" } }. (P1-0: record-of-object only. boolean/array shorthand is P1-1+.)


optional shareScope?: string

Defined in: core/index.ts:854

share scope name (default "default").