ModuleFederationPluginV1

Added in v0.4.5
Stability: Experimental

This plugin corresponds to Module Federation v1.0, which is the ModuleFederationPlugin in webpack.

The configuration is consistent with the ModuleFederationPlugin above, except for the two fields implementation and runtimePlugins.

new rspack.container.ModuleFederationPluginV1();
TIP

Module Federation v1.0 is no longer being iterated. We recommend using Module Federation v1.5 or v2.0. See Module Federation

Example

rspack.config.js
const rspack = require('@rspack/core');

module.exports = {
  plugins: [
    new rspack.container.ModuleFederationPluginV1({
      // options
    }),
  ],
};
ON THIS PAGE