perf(core): disable Rspack parallelCodeSplitting temporarily (#11178)

Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
This commit is contained in:
Sébastien Lorber 2025-05-14 17:01:54 +02:00 committed by GitHub
parent dbc4ed2c15
commit e839b67034
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 5 deletions

View file

@ -71,7 +71,10 @@ export const LAST_UPDATE_FALLBACK: LastUpdateData = {
export async function getLastUpdate(
filePath: string,
): Promise<LastUpdateData | null> {
if (process.env.NODE_ENV !== 'production') {
if (
process.env.NODE_ENV !== 'production' ||
process.env.DOCUSAURUS_DISABLE_LAST_UPDATE === 'true'
) {
// Use fake data in dev/test for faster development.
return LAST_UPDATE_FALLBACK;
}