Skip to content

Commit 00b1f2c

Browse files
committed
preview, projectcontext - Don't call renderResult.context.cleanup() at each render in preview mode
the project context is owned by `preview()` and cleaned up when preview exits. Calling `cleanup()` here would close shared resources (like SassCache KV handles) causing BadResource errors on subsequent re-renders (#13955).
1 parent aa1cae0 commit 00b1f2c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎src/command/preview/preview.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,6 @@ export async function renderForPreview(
485485
[],
486486
));
487487

488-
renderResult.context.cleanup();
489-
490488
return {
491489
file,
492490
format: renderResult.files[0].format,

0 commit comments

Comments
 (0)