File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ let node_program ~output_dir f (x : J.deps_program) =
73
73
P. newline f;
74
74
let cxt =
75
75
Js_dump_import_export. requires L. require Ext_pp_scope. empty f
76
- (* dynamic import should not print in require statement *)
76
+ (* Not be emitted in require statements *)
77
77
(Ext_list. filter_map x.modules (fun x ->
78
78
match x.dynamic_import with
79
79
| true -> None
@@ -87,7 +87,7 @@ let node_program ~output_dir f (x : J.deps_program) =
87
87
let es6_program ~output_dir fmt f (x : J.deps_program ) =
88
88
let cxt =
89
89
Js_dump_import_export. imports Ext_pp_scope. empty f
90
- (* dynamic import should not print in import statement *)
90
+ (* Not be emitted in require statements *)
91
91
(Ext_list. filter_map x.modules (fun x ->
92
92
match x.dynamic_import with
93
93
| true -> None
Original file line number Diff line number Diff line change @@ -505,10 +505,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
505
505
primitive %s"
506
506
s
507
507
in
508
- let dynamic_import = match primitive with
509
- | Pimport -> true
510
- | _ -> false
511
- in
508
+ let dynamic_import = primitive = Pimport in
512
509
let args = Ext_list. map args (convert_aux ~dynamic_import ) in
513
510
prim ~primitive ~args loc
514
511
and convert_aux ?(dynamic_import = false ) (lam : Lambda.lambda ) : Lam.t =
You can’t perform that action at this time.
0 commit comments