Module Wax_wasm.Wasm_outputSource

Sourceval module_ : out_channel:out_channel -> ?output_file:string -> ?source_map:bool -> ?features:Wax_utils.Feature.set -> Ast.location Ast.Binary.module_ -> unit

?output_file is the name of the binary being written (when not stdout); it names the generated file in the emitted source map's file field. ?features gates output-side encoding choices — compact-import-section coalesces ungrouped imports when enabled on it (a group already in the AST is emitted verbatim either way).