-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add basic support for ie 11 #49
Conversation
ie 兼容以及 polyfill 引入应该是上层自己处理,不应该是插件来搞。example 我觉得也没必要特地针对性做这个事,需要兼容 ie 按照 umi 的标准配置来就可以了,不过可以在 readme 中针对这种需求给出建议或链接 |
谢谢指出。主要是发现执行 |
兼容性的语法转换及 polyfill 都应该是上层来做,底层库不应该做这种事情 |
感谢贡献! ie 支持方案给文档就可以了,不用在 example 里支持,example 是针对一般场景描述的 |
已回滚到之前的example状态 |
主要是为了能够在IE11上运行起来:
/examples/master
下增加global.js, 引入whatwg-fetch
.umirc
配置中,增加{ targets: { ie: 11 }
main
标签为div
标签如果需要在Windows系统和IE11浏览器上调试:
打开IE11的Internet选项,选择“安全”——“本地Intranet”, 点击下方“站点”,在弹出窗口中取消勾选所有选项;
如果需要在其他电脑上通过IE11访问:
由于现在
master
中是通过mock数据来获取微前端配置信息的,需要将注册的微前端的entry
替换为对应主机的ip或域名,例如: