qiankun source code:微前端框架 qiankun源码阅读 源码
qiankun(乾坤)源码阅读 主应用的启动start和子应用的注册registerMicroApps 首先,入口index.ts中约会和导出了启动主应用和注册子应用的方法 export { loadMicroApp, registerMicroApps, start } from './apis'; 然后是apis.ts中的注册子应用函数registerMicroApps import { loadApp } from './loader'; import { mountRootParcel, registerApplication, start as startSingleSpa } from 'single-spa'; let microApps: RegistrableApp[] = []; export let frameworkConfiguration: Framework
用户评论