@@ -115938,7 +115938,6 @@ module Lam_compile_main : sig
115938115938 *)
115939115939val compile :
115940115940 string ->
115941- Env.t ->
115942115941 Lambda.lambda ->
115943115942 J.deps_program
115944115943
@@ -116077,7 +116076,6 @@ let _d = fun s lam ->
116077116076*)
116078116077let compile
116079116078 (output_prefix : string)
116080- (env : Env.t)
116081116079 (lam : Lambda.lambda) =
116082116080 let export_idents = Translmod.get_export_identifiers() in
116083116081 let export_ident_sets = Ident_set.of_list export_idents in
@@ -119880,7 +119878,7 @@ let implementation ~use_super_errors ?(react_ppx_version=V3) prefix impl str :
119880119878 (* Env.set_unit_name modulename; *)
119881119879 Lam_compile_env.reset () ;
119882119880 let env = Compmisc.initial_env() in (* Question ?? *)
119883- let finalenv = ref Env.empty in
119881+ (* let finalenv = ref Env.empty in *)
119884119882 let types_signature = ref [] in
119885119883 if use_super_errors then begin
119886119884 Misc.Color.setup (Some Always);
@@ -119899,8 +119897,8 @@ let implementation ~use_super_errors ?(react_ppx_version=V3) prefix impl str :
119899119897 | V3 -> Reactjs_jsx_ppx_v3.rewrite_implementation ast in
119900119898 let ast = Bs_builtin_ppx.rewrite_implementation ast in
119901119899 let typed_tree =
119902- let (a,b,c ,signature) = Typemod.type_implementation_more modulename modulename modulename env ast in
119903- finalenv := c ;
119900+ let (a,b,_ ,signature) = Typemod.type_implementation_more modulename modulename modulename env ast in
119901+ (* finalenv := c ; *)
119904119902 types_signature := signature;
119905119903 (a,b) in
119906119904 typed_tree
@@ -119915,7 +119913,7 @@ let implementation ~use_super_errors ?(react_ppx_version=V3) prefix impl str :
119915119913 ~output_prefix:"" (* does not matter here *)
119916119914 NodeJS
119917119915 (Lam_compile_main.compile ""
119918- !finalenv lam)
119916+ lam)
119919119917 (Ext_pp.from_buffer buffer) in
119920119918 let v = Buffer.contents buffer in
119921119919 Js.Unsafe.(obj [| "js_code", inject @@ Js.string v |]) )
0 commit comments