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.

@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.

@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.

@module-federation/nextjs-mf

The Next.js build plugin for Module Federation.

@module-federation/node

The Node build plugin for Module Federation.

@module-federation/storybook-addon

The storybook plugin for Module Federation.

@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.

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.

@module-federation/utilities

The legacy Runtime for Module Federation.

DANGER

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