Feat: Support vite module federation #1780
protoEvangelion
started this conversation in
Ideas
Replies: 1 comment
-
Thanks @protoEvangelion. A demo repo would be helpful. From what I understand, SSR is not currently supported with the Module Federation Vite package. |
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.
-
Which scope/s are relevant/related to the feature request?
vite-plugin-angular
Information
Hey there 👋 I'm using NX + analog/vite + vite module federation plugin (@module-federation/vite).
This plugin is pretty close to working out of the box but I had to change a few things to support cors, update style urls, and choose the correct settings for the analog/vite plugin.
@brandonroberts Would you be open to a PR to make this dev experience a bit smoother? I'm open to the fact that there is probably a much cleaner way to do this 😅 Let me know if a repo demo would be helpful.
Describe any alternatives/workarounds you're currently using
Manually updated angular-vite-plugin.js using
bun patch
to apply these changes:configureServer
vite hook in./src/lib/angular-vite-plugin.js
:configureServer
as well:Finally some weird things I discovered is I can't change vite
base
to something besides/
& I had to turn off ssrssr: false
.I would be willing to submit a PR to fix this issue
Beta Was this translation helpful? Give feedback.
All reactions