Hello everyone,
I’m new to gradle and trying to use kotlin as language for gradle.
I’m experimenting with kotlin2js.
I want to add some configuration, but they do not work for me:
https://kotlinlang.org/docs/tutorials/javascript/debugging-javascript/debugging-javascript.html
This documentation only tells me how to do it for gradle with groovy
compileKotlin2Js {
kotlinOptions.sourceMap = true
kotlinOptions.sourceMapEmbedSources = “always”
// remaining configuration options
}
I just get an error message if I try to put it into the kotlin file:
Script compilation errors:
Line 18: compileKotlin2Js {
^ Unresolved reference: compileKotlin2Js
Line 19: kotlinOptions.sourceMap = true
^ Unresolved reference: kotlinOptions
Line 20: kotlinOptions.sourceMapEmbedSources = “always”
^ Unresolved reference: kotlinOptions
3 errors
Please can anyone help me here? Thanks