在页面引入 polyfil
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
- 👍 使用
es3ify-loader
- ℹ️ React hot reload 不支持IE8,本地开发阶段要测试IE8请取消热更新.
- ℹ️
[email protected]
之后的版本 设置screw-ie8: false
compress: { warnings: false, screw_ie8: false }, mangle: { screw_ie8: false }, output: { screw_ie8: false }
- ℹ️
babel-presets-es2015
设置loose: true
,避免出现Object.defineProperty
"presets": [ ["es2015", { "loose": true }] ]
- 👍
[email protected]
react@15.*.*
不兼容IE8 - 👍
[email protected]
2.3.0
以上版本存在Object.defineProperty
- 👍
redux@3.*.*
redux 4
不支持IE8 Redux 4 breaking changes
⚠️ antd@2x
⚠️ [email protected]~4.0.3
reduxjs/react-redux#227
⚠️ enzyme
⚠️ redux-saga
redux-saga/redux-saga#313
// 不兼容IE8
import { Tabs } from "antd"
// 兼容IE8
import Tabs from "antd/lib/tabs"
吐槽:有时调试工具会出现在屏幕外,导致无法找到。