@module-federation/bridge-vue3
provides a bridge
utility function for Vue v3 applications. The provided createBridgeComponent
can be used to export application-level modules, and createRemoteComponent
can be used to load application-level modules.
Remote
Host
options
loader
() => Promise<Module>
loadRemote('remote1/export-app')
or import('remote1/export-app')
export
string
VueComponent
bridgeInfo
{ rootComponent: VueComponent; appOptions?: () => ({ router: Router }) }
() => { render: (info: RenderFnParams) => void; destroy: (info: { dom: HTMLElement}) => void; }