Lazy loading webpack module federation calling the import path as a variable #95
Replies: 1 comment 1 reply
-
Ps: I'll PR as soon as it is minimally stable |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, there!
I've been making some advances with a possible plugin structure. So far it can connect different react repos with module federation and has CD/CI with AWS.
But I'm getting stuck at one part and I wanted to share with you to see if you can shed some light.
I want to lazy import a webpack mount function that will be called with the import path. The thing is that it works if I pass the static info to the lazy import, but it does not when I use a variable. Seems to do with webpack wanting to know imports in advance. I wonder
if there's awhat's the way around.I'll keep looking, but would appreciate any ideas you may have.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions