Unable to debug if sourcemap contains absolute paths on windows (WEB-23002)

This commit is contained in:
Konstantin Ulitin
2016-10-19 16:23:28 +03:00
parent 74975bfc34
commit 52f14702f3
@@ -138,7 +138,7 @@ class SourceResolver(private val rawSources: List<String>, internal val canonica
fun canonicalizePath(url: String, baseUrl: Url, baseUrlIsFile: Boolean): String {
var path = url
if (url[0] != '/') {
if (!FileUtil.isAbsolute(url)) {
val basePath = baseUrl.path
if (baseUrlIsFile) {
val lastSlashIndex = basePath.lastIndexOf('/')