function buildBunHost
buildBunHost(mods?: BunModules): BunHost

Builds the default BunHost from node: built-ins, which Bun implements.

Failures are reported through the host's documented channels — null for the read/stat/resolve operations, false for mkdir/rm — so createBunRuntimeServices can turn them into rejected promises with a consistent message.

Parameters

optional
mods: BunModules

Injectable built-ins (defaults to the real node: modules)

Return Type

A fully-wired BunHost

Usage

import { buildBunHost } from "runtime/src/index.ts";