@module-federation/bridge-vue3
提供了用于 Vue v3 应用的 bridge
工具函数,其提供的 createBridgeComponent
可用于导出应用级别模块,createRemoteComponent
用于加载应用级别模块。Demo
Remote
Host
options
loader
() => Promise<Module>
loadRemote('remote1/export-app')
、import('remote1/export-app')
export
string
VueComponent
bridgeInfo
{ rootComponent: VueComponent; appOptions?: ()=> ({ router: Router }) }
() => { render: (info: RenderFnParams) => void; destroy: (info: { dom: HTMLElement}) => void; }