Multiplateform & javascript : define option compilator

Hello, I do a multiplateform project using the gradle multiplatform plugin.

How can I configure the equivalent of the:
compileKotlin2Js {
kotlinOptions.outputFile = “${projectDir}/web/output.js”
kotlinOptions.moduleKind = “amd”
kotlinOptions.sourceMap = true

Thank-you !

Please see the corresponding section in the MPP documentation. The configuration is described for the JVM source set, but the same approach will work for JS targets too.