Skip to content

Commit

Permalink
Fix 1970 (ant-design#1985)
Browse files Browse the repository at this point in the history
* fix ant-design#1970

* format webpack.config.js
  • Loading branch information
ddcat1115 authored and afc163 committed Jun 6, 2016
1 parent 799aa6e commit 250df0f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ timeline: true

---

## 1.3.2

`2016-06-06`

- 修复全局模式下引用 antd,IE8 环境报错的问题。 [#1970](https://github.com/ant-design/ant-design/issues/1970)

## 1.3.1

`2016-06-06`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd",
"version": "1.3.1",
"version": "1.3.2",
"title": "Ant Design",
"description": "一个 UI 设计语言",
"homepage": "http://ant.design/",
Expand Down
14 changes: 13 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
module.exports = require('antd-tools/lib/getWebpackConfig');
const getWebpackConfig = require('antd-tools/lib/getWebpackConfig');

module.exports = function (webpackConfig) {
webpackConfig = getWebpackConfig(webpackConfig);
if (process.env.RUN_ENV === 'PRODUCTION') {
// Fix ie8 compatibility
webpackConfig[0].module.loaders.unshift({
test: /\.jsx?$/,
loader: 'es3ify-loader',
});
}
return webpackConfig;
};

0 comments on commit 250df0f

Please sign in to comment.