You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(codegen): add native Bun ESM host profile (#735)
Implements and validates the Bun-native direct ESM backend required by issue #734, including checked host capabilities, deterministic output, migration documentation, negative controls, and cross-platform host primitives. All review threads are resolved and the final CI matrix is green.
no handle table — the output is a drop-in importable ESM. A \
1260
1295
`.deno.js` output extension selects this backend implicitly.")
1261
1296
1297
+
let bun_esm_arg =
1298
+
Arg.(value & flag & info ["bun-esm"]
1299
+
~doc:"Emit a standalone Bun-native ES module directly from the AST: \
1300
+
public declarations are exported and host operations use Bun's \
1301
+
Node-compatible synchronous APIs. The emitted module contains no \
1302
+
legacy-runtime shim. A `.bun.js` output extension selects this \
1303
+
backend implicitly. This option is mutually exclusive with \
1304
+
`--deno-esm`.")
1305
+
1262
1306
(** Shared --face flag: select the parser surface-syntax face. *)
1263
1307
let face_arg =
1264
1308
let faces =Arg.enum [
@@ -1602,11 +1646,11 @@ let repl_cmd =
1602
1646
Cmd.v info Term.(ret (const repl_cmd_fn $ const ()))
1603
1647
1604
1648
let compile_cmd =
1605
-
let doc ="Compile a file to WebAssembly (1.0 or GC proposal), Julia (.jl), JavaScript (.js), C (.c), a WGSL compute kernel (.wgsl), a Faust DSP program (.dsp), or an ONNX model (.onnx)"in
1649
+
let doc ="Compile a file to WebAssembly (1.0 or GC proposal), native Bun ESM (.bun.js/--bun-esm), Julia (.jl), JavaScript (.js), C (.c), a WGSL compute kernel (.wgsl), a Faust DSP program (.dsp), or an ONNX model (.onnx)"in
0 commit comments