JS: generate paths in source maps relative to .map file location
See KT-19818
This commit is contained in:
+3
-5
@@ -461,11 +461,9 @@ open class Kotlin2JsCompile() : AbstractKotlinCompile<K2JSCompilerArguments>(),
|
||||
|
||||
args.friendModules = friendDependency
|
||||
|
||||
args.sourceMapBaseDirs = source.orEmpty()
|
||||
.asSequence()
|
||||
.filterIsInstance<SourceDirectorySet>()
|
||||
.flatMap { it.srcDirs.asSequence() }
|
||||
.joinToString(File.pathSeparator) { it.absolutePath }
|
||||
if (args.sourceMapBaseDirs == null && !args.sourceMapPrefix.isNullOrEmpty()) {
|
||||
args.sourceMapBaseDirs = project.projectDir.absolutePath
|
||||
}
|
||||
|
||||
logger.kotlinDebug("compiling with args ${ArgumentUtils.convertArgumentsToStringList(args)}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user