Merge pull request 'refactor: module federation' (#2) from refactor/module-federation into main
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -44,8 +44,17 @@ export default defineConfig({
|
||||
'vue',
|
||||
'vue-router',
|
||||
'pinia',
|
||||
'@KTXC',
|
||||
/^@PeopleManager\//,
|
||||
],
|
||||
output: {
|
||||
paths: (id) => {
|
||||
if (id === '@KTXC') return '/js/ktxc.mjs'
|
||||
if (id.startsWith('@PeopleManager/')) {
|
||||
return '/modules/people_manager/static/module.mjs'
|
||||
}
|
||||
return id
|
||||
},
|
||||
assetFileNames: (assetInfo) => {
|
||||
if (assetInfo.name?.endsWith('.css')) {
|
||||
return 'people-[hash].css'
|
||||
|
||||
Reference in New Issue
Block a user