Closed energy718 closed 1 year ago
Warning: 属于breaking change
意图:为exposeLib函数添加versionId参数,保证在同一js环境下多版本导入与多项目使用静态导入时能够获取到相应版本的proxy模块。
Tips:需要修改文档中模板示例 hel-tpl-remote-lib 中的 libTypes.ts中的exposeLib 函数添加version参数
hel-tpl-remote-lib
libTypes.ts
exposeLib
version
import { version } from '../../package.json'; export const lib = exposeLib<LibProperties>(LIB_NAME, version);
import { version } from '../../package.json';
export const lib = exposeLib<LibProperties>(LIB_NAME, version);
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);