https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

jlleitschuh

01/03/2019, 11:59 PM
Also, there doesn't seem to be any way of defining what kind of JS module is being created. CommonJS vs umd vs anything else. If anyone has suggestions in that area, that would be great.
@h0tk3y Do you know if this is currently possible? I'm looking at the
KotlinJsCompilation
class and I'm not seeing any options there for setting the module kind.
h

h0tk3y

01/04/2019, 4:41 PM
This is still done in the
kotlinOptions
. As of 1.3.11, those are only available in the task (you can access it by name, taking the
compileKotlinTaskName
from the compilation). In 1.3.20,
kotlinOptions
are also exposed as a member of
KotlinCompilation
(the inherited compilation types have more concrete
kotlinOptions
types).
🎉 1
j

jlleitschuh

01/04/2019, 5:00 PM
Thanks!