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 bb8d729 commit 4282414Copy full SHA for 4282414
jscomp/main/js_main.ml
@@ -78,11 +78,9 @@ let process_file ppf sourcefile =
78
The {!Location.input_name} relies on that we write the binary ast
79
properly
80
*)
81
- Location.set_input_name sourcefile;
82
- let ext = Ext_filename.get_extension_maybe sourcefile in
83
- let input = Ext_file_extensions.classify_input ext in
+ Location.set_input_name sourcefile;
84
let opref = output_prefix sourcefile in
85
- match input with
+ match Ext_file_extensions.classify_input (Ext_filename.get_extension_maybe sourcefile) with
86
| Re -> handle_reason Ml sourcefile ppf opref
87
| Rei ->
88
handle_reason Mli sourcefile ppf opref
0 commit comments