Skip to content

Commit 08f2351

Browse files
zombieJthinkasany
andauthored
fix: antd umd build (ant-design#56830)
* chore: debug of ci * chore: debug of ci * chore: clean up * use ut --------- Co-authored-by: thinkasany <480968828@qq.com>
1 parent 5a0f141 commit 08f2351

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/size-limit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v6
20-
- uses: oven-sh/setup-bun@v2
20+
- uses: utooland/setup-utoo@v1
2121
- name: size-limit
2222
uses: ant-design/size-limit-action@master
2323
with:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
25-
package_manager: bun
25+
package_manager: ut
2626
build_script: dist
2727
env:
2828
NODE_OPTIONS: --max_old_space_size=4096

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"deploy": "gh-pages -d _site -b gh-pages -f",
5555
"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",
5656
"predist": "npm run version && npm run token:statistic && npm run token:meta && npm run style",
57-
"dist": "antd-tools run dist",
57+
"dist": "npm run ut-install-react-18 && antd-tools run dist",
5858
"format": "biome format --write .",
5959
"install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@16",
6060
"ut-install-react-18": "ut i react@18 react-dom@18 @testing-library/react@16 --save-dev",
@@ -347,4 +347,4 @@
347347
"tnpm": {
348348
"mode": "npm"
349349
}
350-
}
350+
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function addPluginsForProduction(config) {
7272
return newConfig;
7373
}
7474

75-
let webpackConfig = getWebpackConfig(false, { enabledReactCompiler: true });
75+
let webpackConfig = getWebpackConfig(false);
7676

7777
if (process.env.PRODUCTION_ONLY) {
7878
console.log('🍐 Build production only');

0 commit comments

Comments
 (0)