Skip to content

Commit 3162232

Browse files
committed
always use require(./stdlib/list) instead of require(./stdlib/list.js)
1 parent 6f89779 commit 3162232

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jscomp/js_dump.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,7 @@ let pp_program (program : J.program) (f : Ext_pp.t) =
14201420
begin match Sys.getenv "OCAML_AMD_MODULE" with
14211421
| exception Not_found ->
14221422
ignore (node_program f program)
1423+
(* amd_program f program *)
14231424
| _ -> amd_program f program
14241425
end ) ;
14251426
P.newline f ;

jscomp/js_program_loader.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ let string_of_module_id (x : module_id) : string =
3939
->
4040
let target = String.uncapitalize file in
4141
if String_set.mem target Js_config.runtime_set then
42-
"./runtime/" ^ target
42+
"./runtime/" ^ Filename.chop_extension target
4343
else
44-
"./stdlib/" ^ target
44+
"./stdlib/" ^ Filename.chop_extension target
4545
| NodeJS ->
4646
if Ext_string.starts_with id.name "Caml_" then
4747
let path =

0 commit comments

Comments
 (0)