Updated

Technology · Other

Module Federation

webpack.js.org

What is Module Federation?

Module Federation is a webpack feature that lets separate builds act as containers, exposing and consuming code from each other to form one application. It is part of webpack.[1]

Module Federation is a webpack technology for dynamically loading parts of other independently deployed builds.

Module Federation belongs toMiscellaneouscategory.

Part of

webpack[1]

Idea

Separate builds form one application[1]

Known as

Micro-frontends, though not limited to them[1]

Loading

Remote modules arrive at runtime[1]

620websites

use it — 24.4% of the 2,539 websites we scanned in the last 12 months

#4of 35

tools in its category seen in our scans (we recognize 140)

3public pages

on UptimeCard — open any of them to see how that site is doing

In short: a way to build a front end as separate pieces that load each other at runtime. Remote modules load asynchronously, so plan for that.[1]

31.77% of all websites we track run Module Federation▼ 0.11 points since 20 Sep

What is Module Federation used for?

In short, from the websites we scan

Building micro-frontends
Separate builds expose and consume modules to make up one application.[1]
Sharing libraries between builds
Shared modules are provided from one scope instead of each build bundling its own copy.[1]
What it does
Module Federation is one of the miscellaneous tools websites use. In our scans it is #4 of the 35 we see.
Used together with
It is often installed next to React, Node.js, Next.js.

Should you use Module Federation?

The 10-second version, from the vendor’s own pages and what we see in our scans

Module Federation fits if…

  • Several teams build and deploy separate parts of one front end[1]
Remote modules load asynchronously, so using one needs a chunk loading step such as import()[1]

Support and help for Module Federation

How the vendor says you can reach it, and the public help community

Stack Overflow

528 questions[6][7]

40% have an upvoted answer. [webpack-module-federation] questions

Module Federation versions

The newest release, the series that still gets fixes, and what changed

Latest release

2.9.3[5]

Released 3 Nov 2026

What changed in 2.0

  • Module Federation 2.0 is officially stable[4]
  • It brings shared dependency tree shaking[4]
  • The 2.0 announcement introduced runtime decoupling, type safety, devtools and the Manifest protocol[4]

How Module Federation sites protect themselves

Share of the 620 sites we scanned that run each protection

HSTS67% · 415 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

reCAPTCHA27% · 169 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Cloudflare Bot Management13% · 80 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

Protections add up, they do not replace each other: a site can run all of them.

How Module Federation sites are built

Closest partners. The number says how many times more often the tool runs on Module Federation sites than on an average website. Hover a partner for its share of sites.

Emotion3×Prebid2×Next.js2×Node.js2×Lodash2×

Stacks we see most. Tools that tend to run together with Module Federation on the same websites. The percentage is the share of all 620 Module Federation sites that run the whole stack.

11 stacks · swipe, drag or use the arrows
#1

Module Federation + Next.js + Sentry

6.9%43 of 620 sites
#2

Module Federation + Next.js + Emotion

6.9%43 of 620 sites
#3

Module Federation + Next.js + styled-components

5.2%32 of 620 sites
#4

Module Federation + Next.js + DigiCert + Akamai + Boomerang

2.4%15 of 620 sites
#5

Module Federation + Elementor + RankMath SEO

3.2%20 of 620 sites
#6

Module Federation + Funding Choices + Google Sign-in

3.1%19 of 620 sites
#7

Module Federation + Elementor + Site Kit

2.7%17 of 620 sites
#8

Module Federation + Sentry + Google Cloud

2.3%14 of 620 sites
#9

Module Federation + DigiCert + web-vitals

2.3%14 of 620 sites
#10

Module Federation + Sentry + Google Cloud CDN

2.3%14 of 620 sites
#11

Module Federation + Sentry + Google Sign-in

2.1%13 of 620 sites

Usually installed alongside

The bigger the bubble, the more of the 620 Module Federation sites also run the tool. Colour shows what the tool does. Hover or tap a bubble for details.

Google Tag Manager59%Google Analytics54%Facebook Pixel22%Microsoft Clarity12%OneTrust20%Cart Functionality18%Microsoft Advertising16%Prebid12%
Tag managerAnalyticsCookie consentOnline storeAdvertising

Websites using Module Federation

620 websites use Module Federation: 24.4% of the 2,539 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Who is behind Module Federation

From its own pages and public records, with sources

Its story

  1. 2020

    webpack 5.0.0 introduced Module Federation, which lets multiple webpack builds work together.[8]

  2. 2024

    The 2.0 release was announced with runtime decoupling, type safety, devtools and the Manifest protocol.[4]

  3. 2026

    A guide showed how to use Module Federation in Node.js, including runtime-only consumption and Rspack or webpack integration.[4]

  4. 2026

    Module Federation 2.0 was declared stable, adding shared dependency tree shaking and a Modern.js v3 plugin.[4]

Questions about Module Federation

What is Module Federation?
Module Federation is a webpack feature that lets separate builds act as containers, exposing and consuming code from each other to form one application. It is part of webpack.
What is Module Federation used for?
Separate builds expose and consume modules to make up one application. Shared modules are provided from one scope instead of each build bundling its own copy. Module Federation is one of the miscellaneous tools websites use. In our scans it is #4 of the 35 we see. It is often installed next to React, Node.js, Next.js.
What is a remote module?
A module that is not part of the current build but is loaded at runtime from a remote container.[1]
Which build tools work with it?
The site lists integrations for Rsbuild, Rslib, Rstest, Vite, Rspack, webpack and Metro.[2]
Is it only for micro-frontends?
No. It is often known as micro-frontends, but it is not limited to that.[3]
How do separate builds share code?
They act like containers that expose and consume code among themselves, forming one unified application.[3]
Does it work outside the browser?
Yes. A 2026 guide covers using it in Node.js, including runtime-only consumption.[4]
How many websites use Module Federation?
We found Module Federation on 620 of the 2,539 websites we scanned in the last 12 months (24.4%). 3 of them have a public status page.
What are the alternatives to Module Federation?
Other miscellaneous tools we recognize include Open Graph, Webpack, HTTP/3, PWA.

Is your website built with Module Federation?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card