https://github.com/onface/support-ie8
https://github.com/onface/support-ie8
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onface/support-ie8
- Owner: onface
- Created: 2017-02-15T10:44:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T07:52:23.000Z (about 7 years ago)
- Last Synced: 2024-12-26T06:42:05.535Z (5 months ago)
- Size: 52.7 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# support-ie8
## polyfill
在页面引入 polyfil
```html
```
## 其他资源
- [react-ie8](https://github.com/xcatliu/react-ie8)
## 使用特定的构建工具
- :+1: 使用 `es3ify-loader`
## 使用特定版本的构建工具
- :+1: `[email protected]` https://github.com/SamHwang1990/blog/issues/6
- :+1: `[email protected]` https://github.com/karma-runner/karma/issues/2556## 构建工具兼容配置
- :information_source: React hot reload 不支持IE8,本地开发阶段要测试IE8请取消热更新.
- :information_source: `[email protected]`之后的版本 设置 `screw-ie8: false` `compress: { warnings: false, screw_ie8: false }, mangle: { screw_ie8: false }, output: { screw_ie8: false }`
- :information_source: `babel-presets-es2015` 设置 `loose: true` ,避免出现 `Object.defineProperty` *`"presets": [ ["es2015", { "loose": true }] ]`*## 使用特定版本的第三方包
- :+1: `[email protected]` `react@15.*.*` 不兼容IE8
- :+1: `[email protected]` `2.3.0` 以上版本存在 `Object.defineProperty`
- :+1: `redux@3.*.*` `redux 4` 不支持IE8 [Redux 4 breaking changes](https://github.com/reactjs/redux/issues/1342)## 不要使用特定版本的第三方包
- :warning: `antd@2x`
- :warning: `[email protected]~4.0.3` https://github.com/reactjs/react-redux/issues/227## 不要使用的第三包
- :warning: `enzyme`
- :warning: `redux-saga` https://github.com/redux-saga/redux-saga/issues/313## webpack 注意事项
```
// 不兼容IE8
import { Tabs } from "antd"
// 兼容IE8
import Tabs from "antd/lib/tabs"
```## IE Debug
### 禁用内存保护(IE8没有)
### 禁用崩溃重启
### 找到调试工具
> 吐槽:有时调试工具会出现在屏幕外,导致无法找到。

### 普通刷新清除不了IE缓存
