Dinesh R
07/25/2024, 9:34 AMkotlin { js(IR) { nodejs() } }
. Currently IDE(IDEA) says unresolved reference.Reuben Firmin
07/25/2024, 11:57 AMDinesh R
07/25/2024, 11:57 AMDinesh R
07/25/2024, 11:58 AM@JsModule("my-module")
external fun myModule(): String
Reuben Firmin
07/25/2024, 12:00 PM@file:JsModule("sortablejs")
@file:JsNonModule
package rcp.libs
import org.w3c.dom.Element
@JsName("default")
external object Sortable {
fun create(el: Element, options: SortableOptions)
}
One thing that can be useful: after running gradle to import it, look in build/js/node_modules at the structure of the library you're working with.