Tencent / hel

A module federation SDK which is unrelated to tool chain for module consumer. 工具链无关的运行时模块联邦sdk.
https://tencent.github.io/hel/
Other
967 stars 85 forks source link

fix(proxy,core): exposeLib函数添加versionId参数 #56

Closed energy718 closed 1 year ago

energy718 commented 1 year ago

Warning: 属于breaking change

意图:为exposeLib函数添加versionId参数,保证在同一js环境下多版本导入与多项目使用静态导入时能够获取到相应版本的proxy模块。

Tips:需要修改文档中模板示例 hel-tpl-remote-lib 中的 libTypes.ts中的exposeLib 函数添加version参数

import { version } from '../../package.json'; export const lib = exposeLib<LibProperties>(LIB_NAME, version);