fix absolute source map paths on windows (WEB-25102)

This commit is contained in:
Konstantin Ulitin
2017-08-23 14:18:42 +03:00
parent 3e6335f964
commit 8043a0d4d4
@@ -137,7 +137,7 @@ class SourceResolver(private val rawSources: List<String>, internal val canonica
fun canonicalizePath(url: String, baseUrl: Url, baseUrlIsFile: Boolean): String {
var path = url
if (!FileUtil.isAbsolute(url)) {
if (!FileUtil.isAbsolute(url) && url[0] != '/') {
val basePath = baseUrl.path
if (baseUrlIsFile) {
val lastSlashIndex = basePath.lastIndexOf('/')