4.8.10 • Published 2 years ago

hel-micro-wujie v4.8.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Hel

模块联邦 sdk 化,构建工具无关的微模块方案。 doc: https://tnfe.github.io/hel

优势

无痛、极速接入

相比Module Federation,需要升级构建工具并做各种改造,hel只需要安装 sdk 即可

npm i hel-micro

之后即可在项目里加载远程模块

import helMicro from 'hel-micro';

export async function callRemoteMethod() {
  // 懒加载模式,用时才加载
  const lib = await helMicro.preFetchLib('remote-lib-tpl');
  return lib.num.random(22);
}

更多详情

查看文档 https://tnfe.github.io/hel