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