Skip to content

vite-plugin-federationProduction Module Federation for Vite

Manifest-first remotes, SSR-aware loading, runtime rollout controls, and migration paths for modern Vite applications.

vite-plugin-federation logo

Federation Flow ​

BuildGenerate remote entries, manifest artifacts, type bundles, and debug metadata.PublishServe manifests with short cache policy and immutable entries/assets behind a stable URL.RegisterFetch, validate, cache, and register remotes through the curated runtime entry.OperateObserve remote loads, refresh manifests, isolate tenants, and roll back by manifest.
ts
import { loadRemoteFromManifest } from 'vite-plugin-federation/runtime';

const catalog = await loadRemoteFromManifest(
  'catalog/Button',
  'https://cdn.example.com/catalog/mf-manifest.json',
  {
    cacheTtl: 30_000,
    integrity: true,
    retries: 2,
    timeout: 4_000,
  },
);

Where To Start ​

New host or remote

Start with the quick guide, then use the plugin and runtime references for the full option surface.

Production rollout

Use the manifest, runtime, security, preload, and troubleshooting guides before publishing remote artifacts.

Migration

Use the comparison and migration guides when moving from OriginJS or the official Module Federation Vite adapter.

Documentation Map ​

Released under the MIT License.