Skip to content

Commit 36f8a89

Browse files
fix(export): pass timeout to frame.waitForLoadState() (#2578)
The timeout option was already forwarded to page.goto() and page.waitForLoadState(), but the subsequent frame loop used Playwright's hardcoded 30 s default. Large presentations with many slides, iframes, or complex components could exceed 30 s, making --timeout and export.timeout ineffective. Fixes #2577 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9b93d78 commit 36f8a89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/slidev/node/commands/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export async function exportSlides({
278278
// Wait for frames to load
279279
{
280280
const frames = page.frames()
281-
await Promise.all(frames.map(frame => frame.waitForLoadState()))
281+
await Promise.all(frames.map(frame => frame.waitForLoadState(undefined, { timeout })))
282282
}
283283
// Wait for Mermaid graphs to be rendered
284284
{

0 commit comments

Comments
 (0)