微前端'qiankun:' how-to-polyfill-ie

820 阅读1分钟

Error Here is no "fetch" on the window env, you need to polyfill it

更多常见FAQ:查看官方FAQ

如何polyfill IE

qiankun:how-to-polyfill-ie
如果你想让乾坤qiankun(或它的依赖库,或你自己的应用程序)在IE中正常工作,你至少需要在门户网站上引入以下填充:

import 'whatwg-fetch';
import 'custom-event-polyfill';
import 'core-js/stable/promise';
import 'core-js/stable/symbol';
import 'core-js/stable/string/starts-with';
import 'core-js/web/url';