From d16b52d0372fd06beab417fd4e22fe26ce4a6910 Mon Sep 17 00:00:00 2001 From: tom Date: Sun, 9 Jun 2024 15:00:01 +0200 Subject: [PATCH] use case insensitive comparison when searching for dependencies between fable packages --- src/Fable.Compiler/ProjectCracker.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Fable.Compiler/ProjectCracker.fs b/src/Fable.Compiler/ProjectCracker.fs index 95fe64c2a8..b36a119ed5 100644 --- a/src/Fable.Compiler/ProjectCracker.fs +++ b/src/Fable.Compiler/ProjectCracker.fs @@ -303,7 +303,10 @@ let tryGetFablePackage (opts: CrackerOptions) (dllPath: string) = let sortFablePackages (pkgs: FablePackage list) = ([], pkgs) ||> List.fold (fun acc pkg -> - match List.tryFindIndexBack (fun (x: FablePackage) -> pkg.Dependencies.Contains(x.Id)) acc with + let isPkgDependency (dependency: FablePackage) = + pkg.Dependencies + |> Set.exists (fun dep -> dep.ToLowerInvariant() = dependency.Id.ToLowerInvariant()) + match List.tryFindIndexBack isPkgDependency acc with | None -> pkg :: acc | Some targetIdx -> let rec insertAfter x targetIdx i before after =