diff --git a/js/js.sourcemap/src/org/jetbrains/kotlin/js/sourceMap/SourceFilePathResolver.kt b/js/js.sourcemap/src/org/jetbrains/kotlin/js/sourceMap/SourceFilePathResolver.kt index 009fbbab1be..88b2d3b3d94 100644 --- a/js/js.sourcemap/src/org/jetbrains/kotlin/js/sourceMap/SourceFilePathResolver.kt +++ b/js/js.sourcemap/src/org/jetbrains/kotlin/js/sourceMap/SourceFilePathResolver.kt @@ -30,7 +30,7 @@ class SourceFilePathResolver(sourceRoots: List, outputDir: File? = null) { val pathRelativeToOutput = calculatePathRelativeToOutput(file) if (pathRelativeToOutput != null) return pathRelativeToOutput val parts = mutableListOf() - var currentFile: File? = file.canonicalFile + var currentFile: File? = file.absoluteFile.normalize() while (currentFile != null) { if (sourceRoots.contains(currentFile)) { if (parts.isEmpty()) {