Context
The sequential Bun corpus frontier is js/third_party/esbuild/esbuild-child_process.test.ts at position 3960/4708, following completed es-module-lexer work in #217. This contributes to #66.
Current gap
The copied test starts a detached child that exercises esbuild transform, transformSync, build, and buildSync with both ordinary and one-million-character JavaScript sources. The child currently exits 1.
Acceptance criteria
- esbuild named imports resolve in the child entrypoint.
- Async/sync transform normalize the copied JavaScript and preserve large sources byte-for-byte apart from the trailing newline.
- Async/sync stdin build return outputFiles with matching text and write:false behavior.
- Detached inherited-stdio spawn lifecycle returns exit code 0 after all operations complete.
- Transform/build failures include operation and source context.
- The copied test passes and is pinned in the permanent third-party gate.