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
MF adds unrequested caret (^) to shareConfig package requiredVersion #3
In the FEDERATION object, the external-package-version-display requiredVersion in mfe-remote-1-child-1 MFE is "^1.1.0" instead of "1.1.0" (added unnecessary ^)
mfe-remote-1-child-1
package.json we setexternal-package-version-display
to1.1.0
(without ^): https://github.com/idonava/base-mf-app/blob/63cfc5e42dc33f779fc262f6094e077d3f4cc5ad/apps/mfe-remote-1/remotes/mfe-remote-1-child-1/package.json#L15mfe-remote-1-child-1
rsbuild.config.ts we set therequiredVersion
ofexternal-package-version-display
to the version in the package.json (1.1.0, without ^) in the shared scope. https://github.com/idonava/base-mf-app/blob/main/apps/mfe-remote-1/remotes/mfe-remote-1-child-1/rsbuild.config.ts#L38-L40In the FEDERATION object, the
external-package-version-display
requiredVersion inmfe-remote-1-child-1
MFE is "^1.1.0" instead of "1.1.0" (added unnecessary ^)