mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore: antd-tools will handle this
This commit is contained in:
@@ -10,14 +10,6 @@ function ignoreMomentLocale(webpackConfig) {
|
||||
webpackConfig.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
|
||||
}
|
||||
|
||||
// Fix ie8 compatibility
|
||||
function es3ify(webpackConfig) {
|
||||
webpackConfig.module.loaders.unshift({
|
||||
test: /\.(tsx|jsx?)$/,
|
||||
loader: 'es3ify-loader',
|
||||
});
|
||||
}
|
||||
|
||||
function addLocales(webpackConfig) {
|
||||
let packageName = 'antd-with-locales';
|
||||
if (webpackConfig.entry['antd.min']) {
|
||||
@@ -31,7 +23,6 @@ module.exports = function (webpackConfig) {
|
||||
webpackConfig = getWebpackConfig(webpackConfig);
|
||||
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||
webpackConfig.forEach((config) => {
|
||||
es3ify(config);
|
||||
ignoreMomentLocale(config);
|
||||
addLocales(config);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user