fix: antd umd build (#56830)

* chore: debug of ci

* chore: debug of ci

* chore: clean up

* use ut

---------

Co-authored-by: thinkasany <480968828@qq.com>
This commit is contained in:
二货爱吃白萝卜
2026-02-02 21:04:19 +08:00
committed by GitHub
parent 5a0f141ddc
commit 08f23516a0
3 changed files with 5 additions and 5 deletions

View File

@@ -17,12 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- uses: utooland/setup-utoo@v1
- name: size-limit
uses: ant-design/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: bun
package_manager: ut
build_script: dist
env:
NODE_OPTIONS: --max_old_space_size=4096

View File

@@ -54,7 +54,7 @@
"deploy": "gh-pages -d _site -b gh-pages -f",
"deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages -f",
"predist": "npm run version && npm run token:statistic && npm run token:meta && npm run style",
"dist": "antd-tools run dist",
"dist": "npm run ut-install-react-18 && antd-tools run dist",
"format": "biome format --write .",
"install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@16",
"ut-install-react-18": "ut i react@18 react-dom@18 @testing-library/react@16 --save-dev",
@@ -347,4 +347,4 @@
"tnpm": {
"mode": "npm"
}
}
}

View File

@@ -72,7 +72,7 @@ function addPluginsForProduction(config) {
return newConfig;
}
let webpackConfig = getWebpackConfig(false, { enabledReactCompiler: true });
let webpackConfig = getWebpackConfig(false);
if (process.env.PRODUCTION_ONLY) {
console.log('🍐 Build production only');