You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): stop renderer from pulling localGit into the browser bundle
The v0.22.0 release failed on every platform with:
lib/localGit.ts (3:7): "promisify" is not exported by
"__vite-browser-external", imported by "lib/localGit.ts"
Renderer code imports `isLocalUrl` from `lib/diffSource.ts`, which has
a dynamic `import('./localGit')` for the factory. Vite traces the
whole module graph at build time, so localGit's top-level Node imports
(`util.promisify`, `child_process.execFile`) end up evaluated against
the browser externals and blow up the renderer bundle. No renderer
bundle → no package → no DMG / .exe / deb / rpm.
Extract `isLocalUrl` into `lib/local-url.ts` with zero deps and point
renderer callers (PRSummaryBanner, ReviewPage) there. diffSource.ts
and main.ts keep the same shape but import the helper from the new
home. Verified `electron-forge package` runs clean locally.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>