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 001970f commit c1c2bb0Copy full SHA for c1c2bb0
analysis/src/Packages.ml
@@ -112,6 +112,24 @@ let newBsPackage ~rootPath =
112
listModulePath = ["List"];
113
resultModulePath = ["Result"];
114
}
115
+ else if
116
+ opens_from_bsc_flags
117
+ |> List.find_opt (fun opn ->
118
+ match opn with
119
+ | ["Belt"] -> true
120
+ | _ -> false)
121
+ |> Option.is_some
122
+ then
123
+ {
124
+ arrayModulePath = ["Array"];
125
+ optionModulePath = ["Option"];
126
+ stringModulePath = ["Js"; "String2"];
127
+ intModulePath = ["Int"];
128
+ floatModulePath = ["Float"];
129
+ promiseModulePath = ["Js"; "Promise"];
130
+ listModulePath = ["List"];
131
+ resultModulePath = ["Result"];
132
+ }
133
else
134
{
135
arrayModulePath = ["Js"; "Array2"];
0 commit comments