Skip to content

Commit 4ea7fac

Browse files
authored
Export to JS (#7)
* Export to JS * Document
1 parent 93876b3 commit 4ea7fac

File tree

6 files changed

+1052
-84
lines changed

6 files changed

+1052
-84
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ kotlin {
1212
js(IR) {
1313
browser()
1414
nodejs()
15+
binaries.executable()
1516
}
1617

1718
sourceSets {
@@ -26,5 +27,12 @@ kotlin {
2627
implementation(kotlin("reflect"))
2728
}
2829
}
30+
31+
all {
32+
languageSettings.apply {
33+
// https://kotlinlang.org/docs/js-to-kotlin-interop.html#jsexport-annotation
34+
optIn("kotlin.js.ExperimentalJsExport")
35+
}
36+
}
2937
}
3038
}

0 commit comments

Comments
 (0)