We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a8e777 commit 8e4294cCopy full SHA for 8e4294c
compiler/bin-js_of_ocaml/compile.ml
@@ -56,7 +56,8 @@ let output_gen
56
let sm = f ~standalone ~source_map (k, fmt) in
57
match source_map, sm with
58
| None, _ | _, None -> ()
59
- | Some { output_file = output; source_map = _; keep_empty = _ }, Some sm ->
+ | Some { output_file = output; source_map; keep_empty }, Some sm ->
60
+ let sm = if keep_empty then Source_map.Standard source_map else sm in
61
if Debug.find "invariant" () then Source_map.invariant sm;
62
let urlData =
63
match output with
0 commit comments