https://kotlinlang.org logo
#announcements
Title
# announcements
t

tlaukkan

11/29/2017, 5:38 PM
Bundling all those kotlin bindings on the web project is a bit tedious
k

konsoletyper

11/29/2017, 6:26 PM
What do you mean?
t

tlaukkan

11/29/2017, 8:04 PM
Maybe I am not in the know and if so my apologies but there seems not be a way to create reusable KotlinJS libraries. At least last time I checked 🙂. So I have been putting in all that kotlinjs code in a single module instead of splitting it to separate libraries
😕 1
And always needing to recreate and copy kotlin bindings for existing javascript libraries
Would be nice just to be able to reference them with gradle/maven or which ever build system is used
I would like to see gradle as the universal build tool for kotlin across different platforms like js / jvm etc
but everyone likes to use their own favorite 🙂
k

konsoletyper

11/29/2017, 8:08 PM
There was a way, since very 1.0 release, and perhaps even before that
So you need
-meta-info
option which does the trick. And in Gradle it would be something like
compileKotlin2Js.kotlinOptions.metaInfo = true
👍 2
t

tlaukkan

11/30/2017, 10:09 AM
Nice thank you