Replies: 2 comments
-
i have same question |
Beta Was this translation helpful? Give feedback.
0 replies
-
dou you have any solutions? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to expose a single copy of react/react-dom that can be shared by all of the MFEs in my application. I looked at the complete-react-case example but I'm curious about one thing - does every MFE need to use imports of the following form in order to use the exposed version of those libraries?
import 'lib_app/react'
If so, what about third-party libraries that are imported that themselves import react? There's no way to change those import statements to reference lib_app. Is there another way to expose/share a common instance of react without modifying the import statements? I tried to alias 'react' to 'lib_app/react' but the import 'react' statements failed to compile since 'react' couldn't be resolved.
I feel like I'm missing something obvious.
Beta Was this translation helpful? Give feedback.
All reactions