This commit is contained in:
Jacky Zhao
2025-03-12 22:26:39 -07:00
parent c5a8b199ae
commit 1fb7756c49
3 changed files with 33 additions and 18 deletions

View File

@@ -20,9 +20,7 @@ export async function emitContent(ctx: BuildCtx, content: ProcessedContent[]) {
const emitted = await emitter.emit(ctx, content, staticResources)
if (Symbol.asyncIterator in emitted) {
// Async generator case
const files: string[] = []
for await (const file of emitted) {
files.push(file)
emittedFiles++
if (ctx.argv.verbose) {
console.log(`[emit:${emitter.name}] ${file}`)