Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
如果我有两个前端项目 A 和 B,两个项目可以独立部署和访问,例如 A 项目的地址为 https://a.123.com;B 项目的地址为 https://b.456.com。
这个时候如果 A 项目需要使用 B 项目的组件 SomeComponent,但是 SomeComponent 中可能封装了请求,可能使用了全局的数据,那么当在 A 项目中加载使用 SomeComponent 的时候,可能会存在诸多的问题(比如请求会跨域),那么需要对 SomeComponent 进行重新的封装。
那如果 A 项目 和 B 项目是不同团队开发维护的,怎么确保 B 项目中的 SomeComponent 在后续的迭代中,不会影响在 A 项目中的正常使用了?
核心有两个问题:
Beta Was this translation helpful? Give feedback.
All reactions