Ahmed
07/14/2024, 2:10 AMReuben Firmin
07/19/2024, 3:42 PM@OptIn(ExperimentalJsExport::class)
@JsExport
object Recipe {
...
}
@OptIn(ExperimentalJsExport::class)
@JsExport
fun main() {
Recipe
}
Then in your server code, you can import this:
fun HEAD.bundleInit() {
script {
src="/static/main.bundle.js"
}
}
Ask in the #javascript channel for help setting up the build if you need.Cies
08/06/2024, 10:03 AM