Sub-issue of #38432
Regression introduced in #36744
Steps
git clone --depth=1 https://github.com/ant-design/ant-design
cd ant-design
npm install --ignore-scripts
tsc --extendedDiagnostics --skipLibCheck --incremental false --pretty false -p tsconfig.json
Results
cf6b641: 15981 ms
01c86c7: 17094 ms (7% slower)