Tencent / hel

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

npm发布带组织的包名如@xxx/xxx,使用preFetchLib("@xxx/xxx")获取不到元数据 #74

Closed lantingBoy closed 11 months ago

lantingBoy commented 11 months ago

481689312395_ pic

fantasticsoul commented 11 months ago

目前版本在包名带组织时,获取元数据接口会拼接错误,上述问题理正确的元数据路径应该是 https://unpkg.com/@hdzk-hel/pangu@1.0.0/hel_dist/hel-meta.json

可使用元数据重置功能先规避这个问题 https://tnfe.github.io/hel/docs/api/hel-micro/prefetch-lib#%E9%87%8D%E7%BD%AE%E5%85%83%E6%95%B0%E6%8D%AE%E6%8E%A5%E5%8F%A3