mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: parallize GC & build public
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user