mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Perf: parallize GC & build public
This commit is contained in:
parent
9299bc6838
commit
2eacf32180
@ -114,9 +114,10 @@ process.on('unhandledRejection', (reason) => {
|
||||
downloadMockAssetsPromise
|
||||
]);
|
||||
|
||||
await buildDeprecateFiles(rootSpan);
|
||||
await buildPublic(rootSpan);
|
||||
await cacheGc(rootSpan);
|
||||
await Promise.all([
|
||||
buildDeprecateFiles(rootSpan).then(() => buildPublic(rootSpan)),
|
||||
cacheGc(rootSpan)
|
||||
]);
|
||||
|
||||
rootSpan.stop();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user