Browse Source

Perf: parallize GC & build public

SukkaW 1 year ago
parent
commit
2eacf32180
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Build/index.ts

+ 4 - 3
Build/index.ts

@@ -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();