icestark icon indicating copy to clipboard operation
icestark copied to clipboard

:tiger: Micro Frontends solution for large application(面向大型应用的微前端解决方案),站点国内镜像:https://icestark.gitee.io

Results 159 icestark issues
Sort by recently updated
recently updated
newest added

如何在主应用中接入本地dev-server的项目

条件: 1. 子应用的loadScriptMode为script 2. 子应用之间跳转, 问题:由于microApps中缓存了所有的子应用数据,所以在做添加script节点时,没有执行loadAndAppendJsAssets方法,导入无法检测到子应用的生命周期函数报错,希望尽快帮忙处理一下,感谢

need repo

**Bug** && **Feature** **What is the current behavior?** 当前表现:当宿主传入微模块的 props 更新后,模块内部无法获取到最新的 props 值 (不论是使用**注册的本地模块**还是**UMD模块** ) 使用**注册的本地模块**的 demo [codesandbox](https://codesandbox.io/s/gracious-liskov-rm3xjy?file=/src/index.tsx) **What is the expected behavior?** 参考 PR[#592](https://github.com/ice-lab/icestark/pull/592/files),该 PR 中的场景是 props 中任意发生改变都重新卸载组件然后挂载组件,这个场景下子模块的内部 state...

文档中未看到next.js应用配置生命周期,问一下next.js 微应用如何配置生命周期 同时icestark接入next.js微应用,会无法处理下图的script标签,导致报错 ![image](https://user-images.githubusercontent.com/16033134/177307451-615a111e-f5de-4424-b679-076cf1d48a0d.png)

同时引入vite-plugin-index-html、vite-plugin-html 两个插件 在开发模式下vite-plugin-html正常执行 index.html中的变量()可以正常渲染 打包模式下则不会渲染 如果去掉vite-plugin-index-html 也可以正常渲染 demo地址 https://gitee.com/shijianhe/vite-plugin-index-html-demo

如题:用的是官方的demo(vue3+vite),点击菜单跳转页面,点击浏览器的返回键,需要点击2次才能返回上一页,包括调用history.back()方法也需要调用2次 ![image](https://user-images.githubusercontent.com/80328599/162871977-13900260-daaf-456c-9b52-9697fe0cc320.png) 如何能只需要点一次就可返回上一页

bug
help wanted
urgent

## 背景 微应用存在加载一些三方脚本,这些脚本不是核心应用资源。当前这些资源加载失败后会直接导致应用加载失败。 ## 方案 对于 entry 方式加载的脚本资源,若存在 [async](https://javascript.info/script-async-defer),则不阻塞后续脚本执行,并不影响后续脚本执行、页面渲染。 对于 url 配置的脚本资源,则扩展 [url](https://micro-frontends.ice.work/docs/api/ice-stark#url) 的配置如下: ```jsx ``` ## Relate issue #585

feature request
rfc:approval

https://micro-frontends.ice.work/docs/guide/ecosystem demo地址:https://icestark-multi-tabs.vercel.app/ [icestark-multi-tabs](https://github.com/maoxiaoke/icestark-multi-tabs) - 基于 icestark 的 多页签 示例 Demo。[线上预览](https://icestark-multi-tabs.vercel.app/)。 ![image](https://user-images.githubusercontent.com/5450657/172280791-42f70d2d-eaf1-4efd-891c-c44222d6896e.png)

如题,模块默认导出(export default)一个组件,同时export {xxx}导出一个方法或者变量。请问在使用微模块的时候,如何获取模块内置的方法或者变量,目前看只能加载模块组件

**Do you want to request a *feature* or report a *bug*?** **What is the current behavior?** **If the current behavior is a bug, please provide the steps to reproduce and...