Scope
Home's outer compiler dispatcher currently owns home build, so Bun-compatible JS/TS build flags such as --compile, --bytecode, --format, --outfile, and --compile-exec-argv do not reach the ported runtime BuildCommand.
The standalone runtime itself is now functional through Bun.build({ compile: ... }) after #549, including embedded bytecode cache hits, CJS/ESM loading, user argument passthrough, compile-time execArgv, and BUN_OPTIONS. This issue tracks the distinct CLI routing layer needed for the equivalent Bun command surface.
Acceptance criteria
- JS/TS
home buildinvocations route Bun-compatible bundler/compile flags through the native runtime build command without delegating to an external Bun binary. --compile --bytecodeoutput uses the sameStandaloneModuleGraphwriter and startup path as the verifiedBun.build()API.--compile-exec-argv, user argument passthrough, autoload flags, andBUN_BE_BUNmatch the pinned Bun behavior.- Relevant pinned Bun CLI compile tests run against Home without harness substitutions.