Open itschip opened 2 years ago
Had a new look at the README, and ofc found this
remotes: {
// 'remote module name': 'remote module entry file address'
'remote-simple': 'http://localhost:5011/remoteEntry.js',
}
Could work, but since we need this in runtime, it's still a dead end I guess.
You can see a more detailed implementation of this here: https://github.com/project-error/npwd/blob/master/apps/phone/src/common/hooks/useExternalApps.tsx
Any update on this? We have same requirement here.
@yangjocy I've started to look into writing/propose a solution. I'll update this thread if I get anywhere with it.
Any update on this? We have same requirement here.
Any new here?
@itschip any update?
@mostafa-raafat stil trying. A lot of this is still very dark magic to me.
Waiting for this 🙌
Oh it seems easier than I think I think I'll pick this as a workaround, but not sure if it gets any weird issue...
Is your feature request related to a problem? Please describe.
Yes, in Webpack you can do this
which allows you grab any exposed files from any remotes.
Describe the solution you'd like
A similar solution for this plugin/vite. Since we're not exposing a default exported React component, the lazy solution won't work for us. We are actually exposing a default exported object.
Describe alternatives you've considered
I have not yet.
Additional context
..