File tree 4 files changed +16
-40
lines changed
4 files changed +16
-40
lines changed Original file line number Diff line number Diff line change 25
25
let (=) (x : int) (y:float) = assert false
26
26
*)
27
27
28
- (* "xx/lib/ocaml/js.cmj"
29
- Enhancement: This can be delegated to build system
30
- *)
31
- let runtime_package_path : string Lazy.t =
32
- lazy (Filename. dirname (Filename. dirname
33
- (Filename. dirname
34
- (match Config_util. find_opt " js.cmj" with
35
- | None -> assert false
36
- | Some x -> x))))
37
28
38
29
let (// ) = Filename. concat
39
30
@@ -83,7 +74,10 @@ let get_runtime_module_path
83
74
current_package_info
84
75
~package_dir: (Lazy. force Ext_path. package_dir)
85
76
module_system )
86
- (Lazy. force runtime_package_path // dep_path // js_file)
77
+ (* Invariant: the package path to bs-platform, it is used to
78
+ calculate relative js path
79
+ *)
80
+ ((Filename. dirname (Filename. dirname Sys. executable_name)) // dep_path // js_file)
87
81
88
82
89
83
Original file line number Diff line number Diff line change @@ -388699,15 +388699,6 @@ end = struct
388699
388699
let (=) (x : int) (y:float) = assert false
388700
388700
*)
388701
388701
388702
- (* "xx/lib/ocaml/js.cmj"
388703
- Enhancement: This can be delegated to build system
388704
- *)
388705
- let runtime_package_path : string Lazy.t =
388706
- lazy (Filename.dirname (Filename.dirname
388707
- (Filename.dirname
388708
- (match Config_util.find_opt "js.cmj" with
388709
- | None -> assert false
388710
- | Some x -> x))))
388711
388702
388712
388703
let (//) = Filename.concat
388713
388704
@@ -388757,7 +388748,10 @@ let get_runtime_module_path
388757
388748
current_package_info
388758
388749
~package_dir:(Lazy.force Ext_path.package_dir)
388759
388750
module_system )
388760
- (Lazy.force runtime_package_path // dep_path // js_file)
388751
+ (*Invariant: the package path to bs-platform, it is used to
388752
+ calculate relative js path
388753
+ *)
388754
+ ((Filename.dirname (Filename.dirname Sys.executable_name)) // dep_path // js_file)
388761
388755
388762
388756
388763
388757
Original file line number Diff line number Diff line change @@ -388699,15 +388699,6 @@ end = struct
388699
388699
let (=) (x : int) (y:float) = assert false
388700
388700
*)
388701
388701
388702
- (* "xx/lib/ocaml/js.cmj"
388703
- Enhancement: This can be delegated to build system
388704
- *)
388705
- let runtime_package_path : string Lazy.t =
388706
- lazy (Filename.dirname (Filename.dirname
388707
- (Filename.dirname
388708
- (match Config_util.find_opt "js.cmj" with
388709
- | None -> assert false
388710
- | Some x -> x))))
388711
388702
388712
388703
let (//) = Filename.concat
388713
388704
@@ -388757,7 +388748,10 @@ let get_runtime_module_path
388757
388748
current_package_info
388758
388749
~package_dir:(Lazy.force Ext_path.package_dir)
388759
388750
module_system )
388760
- (Lazy.force runtime_package_path // dep_path // js_file)
388751
+ (*Invariant: the package path to bs-platform, it is used to
388752
+ calculate relative js path
388753
+ *)
388754
+ ((Filename.dirname (Filename.dirname Sys.executable_name)) // dep_path // js_file)
388761
388755
388762
388756
388763
388757
Original file line number Diff line number Diff line change @@ -382745,15 +382745,6 @@ end = struct
382745
382745
let (=) (x : int) (y:float) = assert false
382746
382746
*)
382747
382747
382748
- (* "xx/lib/ocaml/js.cmj"
382749
- Enhancement: This can be delegated to build system
382750
- *)
382751
- let runtime_package_path : string Lazy.t =
382752
- lazy (Filename.dirname (Filename.dirname
382753
- (Filename.dirname
382754
- (match Config_util.find_opt "js.cmj" with
382755
- | None -> assert false
382756
- | Some x -> x))))
382757
382748
382758
382749
let (//) = Filename.concat
382759
382750
@@ -382803,7 +382794,10 @@ let get_runtime_module_path
382803
382794
current_package_info
382804
382795
~package_dir:(Lazy.force Ext_path.package_dir)
382805
382796
module_system )
382806
- (Lazy.force runtime_package_path // dep_path // js_file)
382797
+ (*Invariant: the package path to bs-platform, it is used to
382798
+ calculate relative js path
382799
+ *)
382800
+ ((Filename.dirname (Filename.dirname Sys.executable_name)) // dep_path // js_file)
382807
382801
382808
382802
382809
382803
You can’t perform that action at this time.
0 commit comments