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 add @module-federation/enhanced @module-federation/node --save
Configuration
The runtime plugin can be applied at compile-time or runtime
rspack.config.js
const {ModuleFederationPlugin} = require('@module-federation/enhanced/rspack');
new ModuleFederationPlugin({
// other options
runtimePlugins: [
require.resolve('@module-federation/node/runtimePlugin')
]
});