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

React子应用中入口main.js文件改造如下: ![image](https://user-images.githubusercontent.com/79432179/155518895-5ff56c0e-a703-4d13-8d56-ee4ee490c4ea.png) webpack打包方式: ![image](https://user-images.githubusercontent.com/79432179/155519060-3c0b90ed-8f39-4c94-8c86-aef2823ef6c1.png) 主应用(app.tsx): ![image](https://user-images.githubusercontent.com/79432179/155519193-05ed4e1a-73d6-471b-b29d-4d07ee762d6e.png) 以上,前提后运行主应用后,并进入对应的react微应用后,界面提示无法获取mount周期函数: ![image](https://user-images.githubusercontent.com/79432179/155519693-7392bb4a-4821-4584-97b4-8be40764813e.png) 控制台: ![image](https://user-images.githubusercontent.com/79432179/155519809-577afb3b-b081-4381-a776-35690990df18.png) ================== 不明白是不是哪里配置错误了,求大佬指导一下~

## 场景分析 1. 不会加载主应用 sourcemap 文件 2. 也不会加载微应用 sourcemap 文件 导致的问题是,若应用在沙箱通过 new Function 执行时,无法获取到具体的错误堆栈 > 备注:之前支持的 [sourcemap 能力](https://github.com/ice-lab/icestark/releases/tag/v2.5.0),可解决微应用内部执行错误的堆栈

bug
help wanted

微应用需要对项目进行改造,以便项目可以顺利接入 icestark。本 issue 将讨论如何降低用户接入成本。

help wanted
discuss

增加了"build-plugin-stark-module"插件后,启动报 vite-plugin-icestark-lifecycle 这个插件的错误 ![image](https://user-images.githubusercontent.com/1502088/149459224-da55df5c-3f41-4479-9720-0aec02123d98.png) ice.js:v2.4.3 build.json配置: ```json { "vite": true, "lessLoaderOptions": { "localsConvention": "camelCaseOnly" }, "sassLoaderOptions": { "localsConvention": "camelCaseOnly" }, "plugins": [ [ "build-plugin-stark-module", { "outputDir": "build", "modules": { "login":...

## 背景 提供支持模块 bundle analyzer 的能力 ## 方案 支持 `npm start --analyzer` 启动 bundle --analyzer 能力

feature request

需要简单复现下 eval('window.a = 1') (0, eval)('window.a = 1')

help wanted
sandbox

Code snippet 1: ```js var a = 1; ``` Code snippet 2: ```js console.log(window.a); // underfined ``` 这是因为通过 var 声明的全局变量,无法被 proxy 拦截。 ### 可缓解的一些策略 1. 在代码片段 2 中: ```js window.a...

bug
sandbox

非 icestark 错误,需要考虑下是否要处理这种情况 ![image](https://user-images.githubusercontent.com/13417006/136965882-280ce7a0-6172-467f-bcd3-5e1e92d3e448.png) Demo: index.html ```html const element = document.createElement('script'); element.src = './index.js' element.addEventListener( 'error', () => { console.log('error----') }, false, ); element.addEventListener('load', () => { console.log('load---') }, false);...

enhancement

icestark 内部会通过 `root` 作为 `isInIcestark()` 的判断条件,在应用卸载时需移除该标记,与 1.x 保持一致

bug

开发场景是: + 主子应用在预发环境测试 + 微应用代理到本地 localhost ![image](https://user-images.githubusercontent.com/13417006/139635268-d068e7be-340b-42ba-8828-64c8aeb8625f.png)

bug