mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
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:
4
.github/workflows/size-limit.yml
vendored
4
.github/workflows/size-limit.yml
vendored
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user