Fix non-existing files passed in classpath to Kotlin/JS compiler

This commit is contained in:
Sergey Igushkin
2020-01-17 03:05:20 +03:00
parent e8a821986f
commit 38feadcfe8
@@ -590,7 +590,7 @@ open class Kotlin2JsCompile : AbstractKotlinCompile<K2JSCompilerArguments>(), Ko
}
val dependencies = compileClasspath
.filter(libraryFilter)
.filter { it.exists() && libraryFilter(it) }
.map { it.canonicalPath }
args.libraries = (dependencies + friendDependencies).distinct().let {