* fix #1970

* format webpack.config.js
This commit is contained in:
ddcat1115 2016-06-06 16:36:55 +08:00 committed by afc163
parent 799aa6ecc9
commit 250df0f4e3
3 changed files with 20 additions and 2 deletions

View File

@ -9,6 +9,12 @@ timeline: true
--- ---
## 1.3.2
`2016-06-06`
- 修复全局模式下引用 antdIE8 环境报错的问题。 [#1970](https://github.com/ant-design/ant-design/issues/1970)
## 1.3.1 ## 1.3.1
`2016-06-06` `2016-06-06`

View File

@ -1,6 +1,6 @@
{ {
"name": "antd", "name": "antd",
"version": "1.3.1", "version": "1.3.2",
"title": "Ant Design", "title": "Ant Design",
"description": "一个 UI 设计语言", "description": "一个 UI 设计语言",
"homepage": "http://ant.design/", "homepage": "http://ant.design/",

View File

@ -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;
};