Wrapper library around @module-federation/enhanced breaks the federation runtime #3059
Unanswered
VanTigranyan
asked this question in
Q&A
Replies: 1 comment
-
Provide a repo so we can inspect it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I have the code below, that dynamically loads the remotes' definitions and calls init(). Also, if the same function is called from a subsequent MFE, remotes are already assigned to a global var, allowing the request to be skipped. Now, if I use this function directly in my host app, there is no issue; it works perfectly well, but when I move this to a small library (so that the code can be shared), build it, and import it, then I get the error in the screenshot. Is the build that breaks it, or should the init() function not be wrapped in general at all? Thanks a lot in advance.
Beta Was this translation helpful? Give feedback.
All reactions