mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-12 20:47:30 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user