alibabacloud-alfa icon indicating copy to clipboard operation
alibabacloud-alfa copied to clipboard

阿里云微前端解决方案

Results 30 alibabacloud-alfa issues
Sort by recently updated
recently updated
newest added

我是[无界微前端](https://github.com/Tencent/wujie)的作者,制作动机可查看[文章](https://juejin.cn/post/7125646119727529992),最近才看到这个微前端实现的思路和我的方案非常一致,而且也碰到相同的问题,子应用需要一个空白的、同域的、浏览器前进后退可以生效的 iframe 作为沙箱。 由于 设置 iframe src 等于主应用域名,然后 appendChild 到 body 后通过 document.write 操作: ```javascript iframe.contentDocumennt.open(); iframe.contentDocumennt.write(""); iframe.contentDocumennt.close(); ``` 就可以得到一个空白的、同域的iframe,history.pushState 也可以正常工作,唯独一点,当子应用跳转路由后点击浏览器后退发现无效。 所以无界还是采用直接加载 iframe src 等于主应用域名的地址,然后等 location origin 初始化成主应用域名后立即停止iframe的加载,此时history.pushState 也可以正常工作、子应用跳转路由后点击浏览器后退也可以生效到子应用,但是在等待 location...

指南里的其他框架使用模块里给的两个地址都是404了,什么时候更新下

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...

dependencies

Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3. Changelog Sourced from shell-quote's changelog. 1.7.3 Fix a security issue where the regex for windows drive letters allowed some shell meta-characters to escape the...

dependencies

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...

dependencies

目前有的是 ng作为主应用 以及 其他框架引入ng的 demo,我想看看ng作为子应用是如何配置的: ![image](https://user-images.githubusercontent.com/33859558/167115950-14f30de7-46ce-449e-885c-e50442989acc.png) 文档里写的自定义webpack配置我不确定如何做的,放在哪个目录下的哪个文件里,貌似没有webpack相关的配置文件可以修改(ng最新脚手架创建的项目) 我看vue是有提到下载哪个插件然后在哪个文件里修改的,希望官方能再完善下相关的文档,谢谢! 另外问个问题,ng 引入 ng,是否需要对zone进行额外的处理呢?

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4. Changelog Sourced from async's changelog. v2.6.4 Fix potential prototype pollution exploit (#1828) Commits c6bdaca Version 2.6.4 8870da9 Update built files 4df6754 update changelog 8f7f903...

dependencies

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies