fix(studio): run the dev server on Node, not the Bun runtime

Vite 8 bundles with Rolldown, whose native bindings do not get along with
`bun --bun`: the dev server took just over five minutes to report ready,
twice in a row, against 785 ms for the same server started with Node. Vite
6 did not have the problem (425 ms), so this only surfaces with the bump.

Dropping `--bun` lets the vite bin run under its own shebang. The
`--host 127.0.0.1` argument the flag was introduced alongside is kept.
The load-smoke path (`bun run --filter '@hyperframes/studio' dev`) is
green with the server ready in a second.
This commit is contained in:
Miguel Angel Simon Sierra
2026-09-04 00:32:18 -04:00
parent 9fa11588e0
commit 593296bc5f
+1 -1
View File
@@ -45,7 +45,7 @@
"types": "./dist/index.d.ts"
},
"scripts": {
"dev": "bun --bun ./node_modules/.bin/vite --host 127.0.0.1",
"dev": "vite --host 127.0.0.1",
"build": "vite build && tsup",
"typecheck": "tsc --noEmit",
"test": "vitest run",