Skip to content

Commit

Permalink
Fix #3274
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro committed Nov 23, 2022
1 parent e38d81d commit 5667cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fable.Cli/Util.fs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ module Imports =
let outDir = Path.normalizePath outDir
// It may happen the importPath is already in outDir, for example package sources in fable_modules folder.
// (Case insensitive comparison because in some Windows build servers paths can start with C:/ or c:/)
if importPath.StartsWith(outDir, StringComparison.OrdinalIgnoreCase) then importPath
if importPath.StartsWith(outDir + "/", StringComparison.OrdinalIgnoreCase) then importPath
else
let importDir = Path.GetDirectoryName(importPath)
let targetDir = pathResolver.GetOrAddDeduplicateTargetDir(importDir, fun currentTargetDirs ->
Expand Down

0 comments on commit 5667cc3

Please sign in to comment.