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')
  ]
});
ON THIS PAGE