Skip to content

[MF]: plugin for module federation #1234

@douglaszaltron

Description

@douglaszaltron

What problem does this feature solve?

The feature addresses the need for a streamlined and efficient way to manage module federation configurations in ReactJS-based or other development environments. Specifically, the plugin for module federation would allow developers to:

  • Automatically set up configurations related to module federation, enhancing the efficiency of the development process.
  • Read a default configuration file named modulefederation.config.js, simplifying the initial setup.
  • Provide flexibility by allowing developers to change the name of this default configuration file.

This feature solves the problem of manually configuring module federation settings, which can be time-consuming and prone to errors. By automating these processes and offering customization options, the plugin aims to improve the development workflow, maintainability, and scalability of applications using module federation in the rsbuild environment.

What does the proposed API look like?

It would be interesting to have a plugin for module federation.

import { pluginModuleFederation } from '@rsbuild/plugin-module-federation';
It already sets up the configurations and is able to read a file as the default modulefederation.config.js, and we can change this name.

@chenjiahan Is it feasible and does it make sense for rsbuild?"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions