ant-design/webpack.config.js
ddcat1115 250df0f4e3 Fix 1970 (#1985)
* fix #1970

* format webpack.config.js
2016-06-06 16:36:55 +08:00

14 lines
379 B
JavaScript

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