vite-vue2-vuetify-ts-starter icon indicating copy to clipboard operation
vite-vue2-vuetify-ts-starter copied to clipboard

feature request: module federation

Open ngjuping opened this issue 2 years ago • 1 comments

This template worked fine for our corporation for months, a huge thanks from me and the team! However, we have now come to a stage where we need to develop functionalities independently. I have heard and dug into this term "module federation" as a paradigm for frontend micro-service, and I was wondering if there's any possibility that an integration of the "vite-plugin-federation" library into this framework is possible.

TLDR: Any suggestion or possible upgrades in the future such that frontend microservice paradigm is possible?

Best regards, JU PING

ngjuping avatar Nov 11 '22 02:11 ngjuping

I've only skimmed vite-plugin-federation, but I think it probably won't work properly unless you unset manualChunks in vite.config.ts.

https://github.com/logue/vite-vue2-vuetify-ts-starter/blob/7dc52c7ec26eadbafa15a0af395c0b02a2d0b408/vite.config.ts#L111-L131

logue avatar Nov 11 '22 02:11 logue