jdemeulenaere
12/23/2019, 5:49 PMIlya Goncharov [JB]
12/24/2019, 9:08 AMjs plugin
You need to add only it to index.htmljdemeulenaere
12/24/2019, 11:08 AMjdemeulenaere
12/24/2019, 11:14 AMUncaught ReferenceError: sayHello is not definedIlya Goncharov [JB]
12/24/2019, 11:16 AMexternal declarations, you can just see what dukat generate to you, especially pay attention on the first annotations @JsModule and @JsQualifier (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-js-module/index.html and https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-js-qualifier/index.html)
I think it should be something like
@file:JsModule("PIXI")
@file:JsQualifier("utils")
package PIXI.utils
external fun sayHello(type: String)jdemeulenaere
12/24/2019, 11:37 AMWhen accessing module declarations from UMD, they must be marked by both @JsModule and @JsNonModuleIlya Goncharov [JB]
12/24/2019, 11:40 AMUMD module system for Kotlin/JS by default which includes plain non modular js
You can add useCommonJs in target{} block
Or try to add @file:JsNonModule to external declaration filejdemeulenaere
12/24/2019, 11:46 AM