Functions

f
findSidecarEsbuild(
execDir: string,
platform?: NodeJS.Platform
): string | null

Returns the path to an executable esbuild sidecar sitting next to execDir, or null if none is present. On Windows the .exe variant is preferred. Pure and injectable so the lookup order is unit-testable without a real compiled binary.

Usage

import * as mod from "lib/utils/find-sidecar-esbuild.ts";