idonava / base-mf-app

This project is built on React, Module Federation, and Rspack. It is designed to reproduce our shared dependencies issue. To accomplish this, we have created a new external package called external-package-version-display, which is used in all of the project MFEs.
0 stars 1 forks source link

Singleton shown as false in __FEDERATION__ object #1

Closed idonava closed 1 month ago

idonava commented 1 month ago

The React dependency is set to singleton: true in MF, but in the FEDERATION object, it appears as singleton: false. MF Host react singleton set: https://github.com/idonava/base-mf-app/blob/e90d51c2ca4d9dd4c42d2eff68ed9b6616fe540f/apps/host/rsbuild.config.ts#L68-L71

FEDERATION snapshot image

2heal1 commented 1 month ago

Rspack not pass through the config to runtime @ahabhgk

idonava commented 1 month ago

Thanks for the quick fix!