mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
rollback for es3ify, #858
This commit is contained in:
@@ -102,12 +102,13 @@ Ant Design React 支持所有的现代浏览器和 IE8+。
|
||||
|
||||
<style>
|
||||
.code-line-highlight {
|
||||
box-shadow: 0px 184px 0px rgba(255, 207, 0, 0.16);
|
||||
box-shadow: 0px 184px 0px rgba(255, 207, 0, 0.1);
|
||||
height: 42px;
|
||||
margin-top: -42px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 80%;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -130,6 +131,10 @@ Ant Design React 支持所有的现代浏览器和 IE8+。
|
||||
</html>
|
||||
```
|
||||
|
||||
另外,由于 `babel@6.x` 对 IE8 的支持不佳,你可能会遇到类似 [#28](https://github.com/ant-tool/atool-build/issues/28) 和 [#858](https://github.com/ant-design/ant-design/issues/858) 的 default 报错的问题。
|
||||
|
||||
[antd-init](http://github.com/ant-design/antd-init) 脚手架已经解决了这个问题,你也可以参照这个 [webpack 配置](https://github.com/ant-design/antd-init/blob/f5fb9479ca973fade51fd6754e50f8b3fafbb1df/boilerplate/webpack.config.js#L4-L8)。
|
||||
|
||||
> 更多 IE8 下使用 React 的相关问题可以参考:https://github.com/xcatliu/react-ie8
|
||||
|
||||
## 自行构建
|
||||
|
||||
@@ -27,6 +27,10 @@ module.exports = {
|
||||
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.jsx?$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'es3ify'
|
||||
}, {
|
||||
test: /\.jsx?$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel',
|
||||
|
||||
Reference in New Issue
Block a user