能今天做好的事就不要等到明天。以梦为马,学习趁年华。

https://juejin.cn/post/6992539016620933150#6

https://juejin.cn/post/6862661545592111111#heading-47

https://jishuin.proginn.com/p/763bfbd5a3d7

System https://github.com/systemjs/systemjs

import maps https://github.com/WICG/import-maps

https://guguji5.github.io/Single-spa%E5%BE%AE%E6%9C%8D%E5%8A%A1%E5%8C%96%E5%89%8D%E7%AB%AF%E9%A1%B9%E7%9B%AE%E6%80%BB%E7%BB%93/

import-map-overrides https://github.com/joeldenning/import-map-overrides

小记

零碎知识点

1. 基座应用如何给子应用传参

  1. // 基座
  2. singleSpa.registerApplication({
  3. name: 'app1',
  4. app: 'app1',
  5. activeWhen: 'app1',
  6. customProps: {
  7. token: 'token app1'
  8. },
  9. })
  10. singleSpa.registerApplication({
  11. name: 'app1',
  12. app: 'app1',
  13. activeWhen: location => location.pathname.startsWith('app1'),
  14. customProps: (name, location) => {
  15. return {
  16. token: 'token app1'
  17. }
  18. },
  19. })
  20. // 子应用钩子函数中 获取
  21. export const mounte = (props)=> {
  22. console.log(props.token)
  23. }

基于mf ( Module Federation )
https://github.com/efoxTeam/emp