ModuleFederationPluginV1

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 three fields implementation, runtimePlugins and shareStrategy.

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