diff --git a/CHANGELOG.md b/CHANGELOG.md index 23d5b66c68..a74e0c5cb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/package.json b/package.json index 08e8798eb0..e158df8259 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "1.3.1", + "version": "1.3.2", "title": "Ant Design", "description": "一个 UI 设计语言", "homepage": "http://ant.design/", diff --git a/webpack.config.js b/webpack.config.js index df85d676a6..de4dcacf20 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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; +};