Module federation #172
-
Trying to achieve module federation using vite plugin originjs vite-plugin-federation |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
To check the remoteEntry.js we have to build it. In dev mode we can't see that file After building the application using But how to import the remote application in shell or Host application can anyone help me with this |
Beta Was this translation helpful? Give feedback.
-
Could you be more specific? I'm not quite sure what your problem is |
Beta Was this translation helpful? Give feedback.
-
Hey thank you for your reply i was facing problem while exposing
remoteEntry.js
When trying to see in
http://localhost:3000/remote entry.js here I'm not able see remoteEntry.js
But later from the discussions in GitHub i got to know that it should be
like this
http://localhost:3000/assets/remoteEntry.js
And
While importing in host application also we should import using
defineasyncComponent
And how to load the remote on some event like button click with loading it
upfront by starting the host application
My problem is solved but what i felt it is very difficult for a new person
to understand module federation by using GitHub repo
So can u please take sometime and write a simple blog how module federation
works in vue+vite using vite plugin for module federation originjs
How to expose in remote and import in Host simple guide 😀.
…On Tue, 19 Apr, 2022, 7:00 am ruleeeer, ***@***.***> wrote:
Could you be more specific? I'm not quite sure what your problem is
—
Reply to this email directly, view it on GitHub
<#172 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIYUK3NCFXOZQ7RGWMSZPPLVFYEDTANCNFSM5TUYTIQA>
.
You are receiving this because you authored the thread.Message ID:
<originjs/vite-plugin-federation/repo-discussions/172/comments/2589371@
github.com>
|
Beta Was this translation helpful? Give feedback.
To check the remoteEntry.js we have to build it. In dev mode we can't see that file After building the application using
npm run build
And then in preview
command to check preview
npm run preview
http://localhost:4173/assets/remoteEntry.js here you can check the remoteEntry.js working
But how to import the remote application in shell or Host application can anyone help me with this