mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 19:47:49 +08:00
增强模块联邦支持,添加动态导入远程模块的声明,更新示例项目以展示新组件结构和配置,调整 Vite 配置以支持更灵活的远程组件加载。
This commit is contained in:
+12
-3
@@ -34,9 +34,18 @@ export default defineConfig({
|
||||
}),
|
||||
federation({
|
||||
name: 'host',
|
||||
remotes: {},
|
||||
exposes: {},
|
||||
shared: ['vue', 'vuetify'],
|
||||
filename: 'remoteEntry.js',
|
||||
remotes: {
|
||||
// 动态remotes将在运行时通过__FEDERATION__注入
|
||||
},
|
||||
shared: {
|
||||
vue: {
|
||||
requiredVersion: false,
|
||||
},
|
||||
vuetify: {
|
||||
requiredVersion: false,
|
||||
},
|
||||
},
|
||||
}),
|
||||
VitePWA({
|
||||
injectRegister: 'script',
|
||||
|
||||
Reference in New Issue
Block a user