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 b712db0 commit e32dfb5Copy full SHA for e32dfb5
jscomp/gentype/GenTypeConfig.ml
@@ -234,6 +234,7 @@ let readConfig ~getConfigFile ~namespace =
234
sources;
235
}
236
in
237
+ let defaultConfig = {default with projectRoot; bsbProjectRoot} in
238
match getConfigFile ~projectRoot with
239
| Some bsConfigFile -> (
240
try
@@ -242,7 +243,7 @@ let readConfig ~getConfigFile ~namespace =
242
243
| Obj {map = bsconf} -> (
244
match bsconf |> getOpt "gentypeconfig" with
245
| Some (Obj {map = gtconf}) -> parseConfig ~bsconf ~gtconf
- | _ -> default)
246
- | _ -> default
247
- with _ -> default)
248
- | None -> default
+ | _ -> defaultConfig)
+ | _ -> defaultConfig
+ with _ -> defaultConfig)
249
+ | None -> defaultConfig
0 commit comments