"@garfish/bridge-vue-v2
Vue bridge for vue v2 subapp. For more details, check here
Usage
import { vueBridge } from '@garfish/bridge-vue-v2';
function App() {
return <div>content</div>;
}
export const provider = vueBridge({
rootComponent: App,
loadRootComponent: ({ basename, dom, appName, props }) => {
return Promise.resolve(App);
},
handleInstance: (vueInstance, { basename, dom, appName, props }) => {
},
appOptions: ({ basename, dom, appName, props }) => {
return {
el: '#app',
router: newRouter(basename),
store,
};
},
});
Contributing
Credit
- single-spa for community raised a hot wave of micro front-end solutions, and we refer to the implementation of the bridge part in single-spa and we think it is a good design, so we fork the code of the bridge implementation part and make some adjustments for the lifecycles in Garfish.