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
|
downloadMockAssetsPromise
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await buildDeprecateFiles(rootSpan);
|
await Promise.all([
|
||||||
await buildPublic(rootSpan);
|
buildDeprecateFiles(rootSpan).then(() => buildPublic(rootSpan)),
|
||||||
await cacheGc(rootSpan);
|
cacheGc(rootSpan)
|
||||||
|
]);
|
||||||
|
|
||||||
rootSpan.stop();
|
rootSpan.stop();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user