Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

feature request: module federation #8

Open
ngjuping opened this issue Nov 11, 2022 · 1 comment
Open

feature request: module federation #8

ngjuping opened this issue Nov 11, 2022 · 1 comment

Comments

@ngjuping
Copy link

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

@logue
Copy link
Owner

logue commented Nov 11, 2022

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

manualChunks: {
// Split external library from transpiled code.
vue: [
'vue',
'vue-router',
'vue-router/composables',
'vuex',
'vuex-persist',
'deepmerge',
'@logue/vue2-helpers',
'@logue/vue2-helpers/teleport',
'@logue/vue2-helpers/vue-router',
'@logue/vue2-helpers/vuex',
],
vuetify: [
'vuetify/lib',
'@logue/vue2-helpers/vuetify',
'webfontloader',
],
materialdesignicons: ['@mdi/font/css/materialdesignicons.css'],
},

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants