Skip to content
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

Integration of single-spa with rspack for Micro-Frontends #6413

Open
douglaszaltron opened this issue Apr 29, 2024 · 5 comments
Open

Integration of single-spa with rspack for Micro-Frontends #6413

douglaszaltron opened this issue Apr 29, 2024 · 5 comments
Labels

Comments

@douglaszaltron
Copy link

Description

I'm looking to integrate single-spa into an existing project and utilize rspack to build and package micro-frontends efficiently. Has anyone had experience with this combination and could share examples or insights on how to do this effectively?

Context

We have an existing project where we're exploring the use of micro-frontends for modularity and scalability. We've decided to adopt Module Federation as our micro-frontend framework, and we're also considering using rspack for bundling and optimization. However, we're unsure about the best practices and potential challenges when integrating these two technologies together.

However, we also need to package it for single-spa because there's another one that consumes this application with it. Today, we use Vite to do this.

@LingyuCoder
Copy link
Contributor

cc @zhoushaw @ahabhgk

@ahabhgk
Copy link
Contributor

ahabhgk commented Apr 30, 2024

I don't have experience about single-spa so I can't give any suggestions about best practices.
Only for supporting single-spa in Rspack, Rspack should already support it and fully compatible with the configuration required by single-spa: https://github.com/single-spa/create-single-spa/blob/main/packages/webpack-config-single-spa/lib/webpack-config-single-spa.js

@ScriptedAlchemy
Copy link
Contributor

Its more than possible. Since single spa already suggests module federation for many use cases and we support all the build specifications required. You can follow single spa's module federation recipe with rspack and it should work just fine.
Alternatively you can put it into systemjs mode, but the module sharing is more robust with federation

@zhoushaw
Copy link
Member

module-federation/core#2519 @douglaszaltron I think you can focus on this rfc, module federation that also supports loading application levels

Copy link

stale bot commented Aug 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants