mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 13:38:29 +02:00
chore: small bundle size follow up (#24164)
* update config * replace react function * fix alert
This commit is contained in:
parent
be0c654fff
commit
2afab58ac8
27 changed files with 108 additions and 75 deletions
|
@ -56,7 +56,6 @@ function processWebpackThemeConfig(themeConfig, theme, vars) {
|
|||
themeConfig.forEach(config => {
|
||||
ignoreMomentLocale(config);
|
||||
externalMoment(config);
|
||||
injectWarningCondition(config);
|
||||
|
||||
// rename default entry to ${theme} entry
|
||||
Object.keys(config.entry).forEach(entryName => {
|
||||
|
@ -87,6 +86,10 @@ const webpackConfig = getWebpackConfig(false);
|
|||
const webpackDarkConfig = getWebpackConfig(false);
|
||||
const webpackCompactConfig = getWebpackConfig(false);
|
||||
|
||||
webpackConfig.forEach(config => {
|
||||
injectWarningCondition(config);
|
||||
});
|
||||
|
||||
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||
webpackConfig.forEach(config => {
|
||||
ignoreMomentLocale(config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue