Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

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

Open
answershuto opened this issue Jul 28, 2022 · 3 comments
Open

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

answershuto opened this issue Jul 28, 2022 · 3 comments
Assignees

Comments

@answershuto
Copy link
Member

answershuto commented Jul 28, 2022

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

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

@answershuto answershuto self-assigned this Jul 28, 2022
@answershuto
Copy link
Member Author

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

@wssgcg1213
Copy link
Collaborator

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

@wssgcg1213
Copy link
Collaborator

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

@ice-lab ice-lab locked and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants