logologo
Guide
Practice
Configuration
Plugins
Showcase
Blog
Ecosystem
Module Federation Examples
Practical Module Federation
Zephyr Cloud
Nx
简体中文
English
Guide
Practice
Configuration
Plugins
Showcase
Blog
Module Federation Examples
Practical Module Federation
Zephyr Cloud
Nx
简体中文
English
logologo

Getting Started

Introduction
Setting Up the Environment
Quick Start Guide
Feature Navigation
Glossary of Terms
npm Packages

basic

Runtime

Runtime Access
Runtime API
Runtime Hooks
Rsbuild Plugin
Rspack Plugin
Webpack Plugin
Rspress Plugin
Vite Plugin
Metro
Type Hinting
Command Line Tool
Style Isolation

Data Solution

Data Fetching
Data Caching
Prefetch

Frameworks

Modern.js
Next.js

Deployment

Deploy with Zephyr Cloud

Debug

Enable debug mode
Chrome DevTools
Global variables

Troubleshooting

Overview

Runtime

RUNTIME-001
RUNTIME-002
RUNTIME-003
RUNTIME-004
RUNTIME-005
RUNTIME-006
RUNTIME-007
RUNTIME-008
RUNTIME-009

Build

BUILD-001
BUILD-002

Type

Overview
TYPE-001
Other
Edit this page on GitHub
Previous PageGlossary of Terms
Next PageRuntime Access

#npm Packages

This document showcases all npm package information maintained by the Module Federation team.

#@module-federation/enhanced

The core package of Module Federation, serving as a Webpack build plugin, Rspack build plugin, and Runtime entry dependency.

  • npm
  • Source Code
  • Runtime Documentation
  • Rspack Build Plugin
  • Webpack Build Plugin

#@module-federation/runtime

The Runtime package of Module Federation, typically used with @module-federation/enhanced to leverage Runtime capabilities, and can be installed separately if no build tool is required.

  • npm
  • Source Code
  • Documentation

#@module-federation/rspack

The Rspack build plugin for Module Federation, typically used with @module-federation/enhanced, and cannot be used independently without the Runtime API.

  • npm
  • Source Code
  • Documentation

#@module-federation/nextjs-mf

The Next.js build plugin for Module Federation.

  • npm
  • Source Code
  • Documentation

#@module-federation/node

The Node build plugin for Module Federation.

  • npm
  • Source Code
  • Documentation

#@module-federation/storybook-addon

The storybook plugin for Module Federation.

  • npm
  • Source Code
  • Documentation

#@module-federation/native-federation-typescript

The bundler-agnostic plugin for type generation and loading for Module Federation. It is recommended when you are using other bundlers than webpack and rspack or Module Federation < 2.0. Otherwise, it is recommended to use @module-federation/enhanced to automatically handle type generation and loading.

  • npm
  • Source Code
  • Documentation
WARNING

When using mf-manifest.json, @module-federation/enhanced will download consumed TypeScript types and maintain a hot update experience. It is generally recommended to use the built-in type hinting capabilities of @module-federation/enhanced directly.

#@module-federation/native-federation-tests

The bundler-agnostic plugin for mocks generation and loading for Module Federation and your tests, that works for both Jest and Vitest.

  • npm
  • Source Code
  • Documentation

#@module-federation/utilities

The legacy Runtime for Module Federation.

  • npm
  • Source Code
  • Documentation
DANGER

@module-federation/utilities is now deprecated. Please use the runtime exports of @module-federation/enhanced instead.