You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I think that if the host app shares react and react-native dependencies, the container app can retrieve the shared dependencies through the __webpack_require__.f.consumes function.
Is it really necessary to set the container's eager to true as described in the documentation?
Because of eager: true, the bundle file size becomes too large.
The text was updated successfully, but these errors were encountered:
as far as I know, for proper initialization, setting react and react-native is required. I have not experimented in that area because it was a never a big issue to begin with. I'm unable to provide you with a more advanced take on the subject.
You're saying that bundle file size becomes too large, how large are we talking about here?. For our TesterApp, which isn't optimized at all for the main chunk filesize, it takes roughly 1,5 MB of diskspace.
as far as I know, for proper initialization, setting react and react-native is required. I have not experimented in that area because it was a never a big issue to begin with. I'm unable to provide you with a more advanced take on the subject.
You're saying that bundle file size becomes too large, how large are we talking about here?. For our TesterApp, which isn't optimized at all for the main chunk filesize, it takes roughly 1,5 MB of diskspace.
Setting eager:false reduces the size in kb because react and react-native JavaScript code is excluded from the app.container.bundle file.
I think this is a significant difference when there's a need to load chunks at home.
In the following document, it is mentioned to set eager of react and react-native dependencies to true.
https://re-pack.netlify.app/docs/module-federation/#react-and-react-native-must-be-eager-and-singleton
However, I think that if the host app shares react and react-native dependencies, the container app can retrieve the shared dependencies through the
__webpack_require__.f.consumes
function.Is it really necessary to set the container's
eager
to true as described in the documentation?Because of
eager: true
, the bundle file size becomes too large.The text was updated successfully, but these errors were encountered: