From 1d79ec487d52714f47330b49bca549de8ce3b4f0 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 26 Oct 2026 17:00:10 +0800 Subject: [PATCH] test(astro): optimize drizzle-orm through void in the Astro playground The playground listed drizzle-orm/sqlite-core in optimizeDeps.include, but drizzle-orm is Void's dependency, so Vite could not resolve the name and skipped it. The first request then found it, re-optimized and reloaded mid-request, which made the dev smoke test miss its 20 s start limit under a full parallel run. Co-Authored-By: Claude Opus 5.5 (1M context) --- playground/astro/astro.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playground/astro/astro.config.mjs b/playground/astro/astro.config.mjs index 697c402c7..3a339ec8d 100644 --- a/playground/astro/astro.config.mjs +++ b/playground/astro/astro.config.mjs @@ -25,8 +25,9 @@ export default defineConfig({ vite: { // These server imports are discovered on the first request. Optimize them // up front to avoid serial worker reloads while the smoke server warms up. + // drizzle-orm is Void's dependency, not this app's, so name it through void. optimizeDeps: { - include: ['astro/logger/console', 'drizzle-orm/sqlite-core'], + include: ['astro/logger/console', 'void > drizzle-orm/sqlite-core'], }, plugins: [voidPlugin(), vite8AstroDevToolbarCompat()], },