Open answershuto opened 2 years ago
import { xxx } from 'rax-app' 需 alias 到 compat,支持原本 rax-app 导出的一些能力并抹平差异,比如 router、store 等。
需考虑 store 新方案的迁移成本。
结论:加一个 compat 来兼容这些 api,基础能力从 ice 直接导出,包一层转换逻辑。
这样导出吧 'rax-compat/app'
独立导出可以按需使用, 避免包体积过大的问题
import { xxx } from 'rax-app' 需 alias 到 compat,支持原本 rax-app 导出的一些能力并抹平差异,比如 router、store 等。
需考虑 store 新方案的迁移成本。