ant-design/webpack.config.js

14 lines
385 B
JavaScript
Raw Normal View History

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({
2016-06-22 13:18:43 +08:00
test: /\.(tsx|jsx?)$/,
loader: 'es3ify-loader',
});
}
return webpackConfig;
};