desktop-git-runner
Desktop git runner.
Desktop-only (node:child_process, node:util), but inert to import on mobile: nothing here reads either module until the runner executes a command. The imports are static on purpose. A plugin ships one CommonJS main.js, and esbuild turns a static import of an external module into a require(), which Obsidian’s renderer serves, while it keeps a dynamic import('node:child_process') as a native import(), which the renderer cannot load. That failed every command, and loadGitRenames answered no renames at all.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| createDesktopGitRunner | Creates a GitRunner for a folder. Call the runner only on desktop, behind Platform.isDesktopApp. Importing this module and creating a runner are safe on mobile: Node modules are read only when the runner executes a command. |