Skip to content

Commit 4f2e846

Browse files
committed
refactor(react): await the all.html task on its own line
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d41d989 commit 4f2e846

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/react/src/html/generate.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ const buildPrograms = async ({ pages, all, outDir, config }) => {
109109
// site: minifying the Node.js docs' ~35MB `all.html` takes ~400MB and over
110110
// a second, for a page 2% smaller once compressed.
111111
if (all) {
112-
tasks.unshift({ ...(await compile(all)), minify: false });
112+
const allTask = await compile(all);
113+
114+
tasks.unshift({ ...allTask, minify: false });
113115
}
114116

115117
htmlLogger.debug(`Compiled ${tasks.length} page programs`);

0 commit comments

Comments
 (0)