From d6589ad155affbcfb146329f14023c1af6858d16 Mon Sep 17 00:00:00 2001 From: StreamKit Devin Date: Fri, 3 Apr 2026 21:02:08 +0000 Subject: [PATCH] fix(ui): drop --bun flag from Vite dev script The dev script used `bunx --bun vite`, which forces Vite to run under Bun's JavaScript runtime instead of Node.js. Vite v8's dep optimization (rolldown) runs 100-1000x slower under Bun's runtime: bunx --bun vite: 27s cold / 242s warm vite (Node.js): 200ms cold / 200ms warm This also caused connection hangs and timeouts because the dev server was stuck in the slow optimization phase and couldn't serve requests. Using bare `vite` (resolved from node_modules/.bin) is idiomatic and consistent with the existing `build` and `preview` scripts. When invoked via `bun run dev` (from `just ui`), Bun still handles script launching and package resolution, but Vite itself executes on Node.js as designed. Signed-off-by: Devin AI Signed-off-by: StreamKit Devin Co-Authored-By: Claudio Costa --- ui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/package.json b/ui/package.json index a56c2eca..5c0b4f3c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -3,7 +3,7 @@ "type": "module", "private": true, "scripts": { - "dev": "bunx --bun vite", + "dev": "vite", "build": "vite build", "preview": "vite preview", "format": "prettier --write src",