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

Development

Plugin System

Plugins

Node Plugin
Retry Plugin
Building a Custom Retry Plugin
Edit this page on GitHub
Previous PagePlugin System
Next PageRetry Plugin

#Node Plugin

Module Federation on the server-side enables many possibilities for backend architecture as well as enables server side rendering of apps.

#Usage

This Runtime Plugin is Provided by the module-federation/node package

npm
yarn
pnpm
bun
npm add @module-federation/enhanced @module-federation/node --save

#Configuration

The runtime plugin can be applied at compile-time or runtime

Rspack
Webpack
Module Federation Runtime
rspack.config.js
const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack');

new ModuleFederationPlugin({
  // other options
  runtimePlugins: [
    require.resolve('@module-federation/node/runtimePlugin')
  ]
});