ice-lab / ice-next

The repo was transferred to https://github.com/alibaba/ice
https://v3.ice.work/
MIT License
53 stars 7 forks source link

rax-compat 需支持 原 rax-app 导出的一些能力 #401

Open answershuto opened 2 years ago

answershuto commented 2 years ago

import { xxx } from 'rax-app' 需 alias 到 compat,支持原本 rax-app 导出的一些能力并抹平差异,比如 router、store 等。

需考虑 store 新方案的迁移成本。

answershuto commented 2 years ago

结论:加一个 compat 来兼容这些 api,基础能力从 ice 直接导出,包一层转换逻辑。

wssgcg1213 commented 2 years ago

这样导出吧 'rax-compat/app'

wssgcg1213 commented 2 years ago

独立导出可以按需使用, 避免包体积过大的问题