-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MF]: plugin for module federation #1234
Comments
Thanks for your suggestion! We do plan to provide better support for module federation in Rsbuild, maybe even in Rsbuild core. The design of the relevant API has not yet been determined. @ScriptedAlchemy and @2heal1 may be able to provide more input for this ❤️ |
Yes. I also wanted to add http endpoint support to allow for APIs to configure the plugin. We need to have a larger discussion about what and how it should look. File based was another possibility. Also reading exports field and mirroring it in MFP like a package would |
@chenjiahan I'm testing with module federation, but with the new version (v0.3.8), it has stopped working. It halts at 70% sealing plugins. Do you know what could be the issue? Here's an example of my configuration. It's related to the shared configurations in the module federation setup because when I remove that part, it can compile successfully. |
@douglaszaltron Can you provide a repro that can help us troubleshoot? ❤️ |
@ahabhgk It seems rspack 0.5.2 broke Rsbuild + module federation example, can you help check it. ❤️ Steps:
|
I wrote an RFC for MF, see: #1461 |
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:
modulefederation.config.js
, simplifying the initial setup.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?"
The text was updated successfully, but these errors were encountered: