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

Support dynamic entry #198

Open
Zhengy1995 opened this issue Nov 27, 2024 · 4 comments
Open

Support dynamic entry #198

Zhengy1995 opened this issue Nov 27, 2024 · 4 comments

Comments

@Zhengy1995
Copy link

当前编译时插件的remote entry只支持传入url,希望支持传入一段代码在运行时执行返回,就像另一个插件https://github.com/originjs/vite-plugin-federation
image

@zhangHongEn
Copy link
Contributor

@Symyon
Copy link

Symyon commented Jan 9, 2025

@zhangHongEn can you elaborate what you mean by it? to write our own plugin for that?

I am using lazy loading with Suspense in the app, but for some reason the entire MFE is loaded regardless if I visit the specific route that it suppose to render on. Lazy loading it does not work.
Is that something that can be achieved and it is a problem in my code?
By the way, I am not talking about the remoteEntry.js, but everything else loads as well.

@zhangHongEn
Copy link
Contributor

lazy loading: https://module-federation.io/configure/shareStrategy.html

@zhangHongEn
Copy link
Contributor

当前编译时插件的remote entry只支持传入url,希望支持传入一段代码在运行时执行返回,就像另一个插件https://github.com/originjs/vite-plugin-federation image

remote promise 已经过时, 运行时插件是module-federation2.0的标准方案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants