Files
orca/src/main/ipc/parcel-watcher-module-loader.ts
T
OrcaWin 6fc3cdcad6 Bundle Bun for headless Orca and profile persistence (#22635)
Bundle a pinned, verified Bun runtime for headless Orca so existing Node launch commands can hand off before opening a profile. Keep desktop execution on Electron.

Add the Bun SQLite adapter and terminal backend, bounded shutdown, process inspection and cross-platform artifact qualification. Keep future managed SSH deployment separate from current production launch paths.
2026-09-25 22:49:06 -07:00

12 lines
484 B
TypeScript

import type * as ParcelWatcher from '@parcel/watcher'
/** Native loading stays in the watcher child, across named and CommonJS exports. */
export async function loadParcelWatcher(): Promise<typeof ParcelWatcher> {
const loaded = await import('@parcel/watcher')
const watcher = typeof loaded.subscribe === 'function' ? loaded : loaded.default
if (!watcher || typeof watcher.subscribe !== 'function') {
throw new Error('parcel_watcher_module_invalid')
}
return watcher
}