feat(FN-5610): externalize cpu-features in Bun build
Externalizes the `cpu-features` dependency from the CLI build step to support Bun compilation compatibility, completing Step 2 of the migration. Fusion-Task-Id: FN-5610 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai> Fusion-Task-Id: FN-5610
This commit is contained in:
@@ -343,6 +343,9 @@ function compileBinary(outFile: string, target: string, isCrossCompile: boolean)
|
|||||||
// external so Bun's static bundler doesn't try to resolve it at compile.
|
// external so Bun's static bundler doesn't try to resolve it at compile.
|
||||||
"--external",
|
"--external",
|
||||||
"react-devtools-core",
|
"react-devtools-core",
|
||||||
|
// cpu-features: native .node binding from ssh2 (transitive via dockerode); ssh2 falls back to pure JS when unavailable
|
||||||
|
"--external",
|
||||||
|
"cpu-features",
|
||||||
],
|
],
|
||||||
cwd: workspaceRoot,
|
cwd: workspaceRoot,
|
||||||
stdout: "inherit",
|
stdout: "inherit",
|
||||||
|
|||||||
Reference in New Issue
Block a user