Module Federation is a Webpack 5 plugin (and now a standalone runtime) that lets one JavaScript application load code from another at runtime — across different builds, different deploy cycles, and different teams. It was introduced in Webpack 5 (October 2020) and quickly became the dominant approach for building micro-frontends.
Think of it like this: your bundler normally resolves everyimport from your localnode_modules or a relative path. Module Federation extends that resolution to a remote URL. The resulting module is just a regular JavaScript object — it can export components, hooks, utility functions, even entire pages. The consumer (called the "host") imports it with a standard import statement, and the bundler knows to fetch it from a remote entry point at runtime.
This is fundamentally different from code splitting, which splits a single build into chunks served from the same origin. Module Federation splits across builds. Team A builds the Checkout micro-frontend and deploys it independently. Team B builds the Catalog. The host shell app loads both at runtime and stitches them together with a shared navigation. Each team owns its deploy cycle, its testing pipeline, and its technology choices (as long as they share React).