mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 09:07:40 +00:00
perf(dev): serve the renderer with bundled dev mode by default (#33449)
* perf(dev): serve the renderer with bundled dev mode by default * test(dev): expect bundled renderer dev by default
This commit is contained in:
@@ -118,13 +118,10 @@ In PowerShell, use `$env:ORCA_DEV_MAIN_SOURCEMAPS='0'` before `pnpm dev`.
|
||||
Remove the variable when debugging the main process with source maps. Renderer and
|
||||
preload settings are unaffected; production builds always keep their hidden main maps.
|
||||
|
||||
To try Vite's experimental bundled dev mode for the renderer, set `ORCA_DEV_BUNDLED=1`
|
||||
before `pnpm dev` (PowerShell: `$env:ORCA_DEV_BUNDLED='1'`). The renderer is served as a
|
||||
few bundled chunks instead of thousands of module requests, so the first render and full
|
||||
reloads are faster. HMR still works, but each edit rebuilds the affected chunks. While a
|
||||
rebuild is pending, a newly opened pop-out, space, or web window may get placeholder HTML
|
||||
until the bundle is ready. The mode is opt-in and experimental. Unset the variable if the renderer
|
||||
misbehaves, and report the problem with the variable noted.
|
||||
`pnpm dev` serves the renderer with Vite's bundled dev mode: a few bundled chunks instead of
|
||||
thousands of module requests, so the first render and full reloads are faster. While a rebuild is
|
||||
pending, a newly opened pop-out, space, or web window may briefly get placeholder HTML. If the
|
||||
renderer misbehaves, set `ORCA_DEV_BUNDLED=0` (PowerShell: `$env:ORCA_DEV_BUNDLED='0'`) and report it.
|
||||
|
||||
Local installs use pnpm's global virtual store: each package version is one slot
|
||||
under `~/pnpm/store` that every worktree links to, instead of a full `node_modules` per worktree.
|
||||
|
||||
Reference in New Issue
Block a user