icestark
icestark copied to clipboard
:tiger: Micro Frontends solution for large application(面向大型应用的微前端解决方案),站点国内镜像:https://icestark.gitee.io
**Do you want to request a *feature* or report a *bug*?** bug **What is the current behavior?** 切换两个子应用出现错误`error occurs when execute script in sandbox: Error: only one instance of babel-polyfill...
**Do you want to request a *feature* or report a *bug*?** feature **What is the current behavior?** ice-stark 加载子应用资源时,遇到静态资源失败的情况会直接抛到界面上。 **What is the expected behavior?** cdn加载失败是偶发的,可能受用户网络环境的影响,希望能进行一定次数的重试,这样对用户更友好些。
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...
vue3中主应用 子应用都使用hash模式加载会报错并且加载不出来。 vue-router.mjs:3420 Error: Invalid route component at extractComponentsGuards (vue-router.mjs:2035:27) at vue-router.mjs:3222:22 ** 是否可以提供一个都是hash模式的demo 而且在使用了vue2主应用加载vue3 的子应用的时候也有不一样的地方 主应用y通过上面的加载才能加载
## Bug Report ### What is the current behavior? 微模块在加载 runtime.json 的依赖时,会按照顺序依次在沙箱中加载依赖,并且提取出在依赖加载后新增在 `window` 对象上的属性;然后以提取出的属性注入到新的沙箱中继续加载下一个依赖,提取新增的属性。全部加载完成后,就可以获得配置在 Runtime 中依赖属性 deps。 https://github.com/ice-lab/icestark/blob/a6981bd305f21a6cd6b8ad4897b870710a8d63a2/packages/sandbox/src/index.ts#L97-L114 在沙箱中创建的 sandbox 中对于 `window` 对象配置的 `Proxy`,在 `set` 拦截中,对于新增的属性,方法仅在原 `window` 对象上不存在该属性的时候会将该属性添加到 `propertyAdded` 中;而对于原来就存在于...
- [x] rerender module when props changed - [x] get latest props after load module bundles
**Do you want to request a *feature* or report a *bug*?** 通过官方提供的方法生成主应用,然后接入自己的子应用项目,要么是找不到js,要么是找不到生命周期函数。希望官方提供非ice框架生成子应用的详细文档,包括vue、react等各种框架的,而不是现在的两句话就过去了。 **What is the current behavior?** **If the current behavior is a bug, please provide the steps to reproduce...
我们的项目中的子应用为React,由于需要在部分组件的unmount时执行部分逻辑,因此我们需要在切换微应用时,能够在上一个微应用的 ReactDOM.unmountComponentAtNode() 直行完毕后,再切换至新微应用。 但在实际调试过程中,我们发现: 1.主应用在通过路由跳转后,微应用DOM直接从DOM树上消失,没有执行React的销毁逻辑; 2.我们在子应用上注册了unmount事件: export async function unmount(props) { ReactDOM.unmountComponentAtNode(props.container); } 并在该方法打上断点后发现,进入到unmount钩子时,DOM已经被清除,container已经是一个空节点,导致 unmountComponentAtNode 执行失败。 请问是否有什么办法可以解决这个问题?谢谢!