Remap source maps in JS DCE. Improve JS DCE error logging
See KT-19821
This commit is contained in:
+3
@@ -225,6 +225,9 @@ class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||
project.build("runRhino") {
|
||||
println(output)
|
||||
assertSuccessful()
|
||||
val pathPrefix = "mainProject/build/min"
|
||||
assertFileExists("$pathPrefix/exampleapp.js.map")
|
||||
assertFileExists("$pathPrefix/examplelib.js.map")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -18,10 +18,12 @@ dependencies {
|
||||
}
|
||||
|
||||
compileKotlin2Js.kotlinOptions.outputFile = "${buildDir}/examplelib.js"
|
||||
compileKotlin2Js.kotlinOptions.sourceMap = true
|
||||
|
||||
jar {
|
||||
from buildDir
|
||||
include "**/*.js"
|
||||
include "**/*.js.map"
|
||||
}
|
||||
|
||||
jar.dependsOn(compileKotlin2Js)
|
||||
|
||||
Reference in New Issue
Block a user