Ayfri
11/03/2021, 3:51 PMimport {Something} from './file';
import {Else} from './other';
Something.execute(Else.thing);
export {Something};
In my case the code Something.execute(Else.thing)
will not be executed, and so it's making the library not working unless I execute this code by hand in Kotlin, is there a way to fix this ?Grégory Lureau
11/03/2021, 4:04 PMexecute
in the Kotlin side ?Ayfri
11/03/2021, 4:06 PMcompanion object {
fun registerPlugin(plugin: IApplicationPlugin)
}
And the code not executed is for example (there are a lot) thisBig Chungus
11/03/2021, 4:35 PMexternal fun require(module: dynamic): dynamic
fun main() {
require("js/module/with/side/effects")
}
Ayfri
11/03/2021, 4:37 PMfun main() {
require("js/node_modules/@pixi/app")
}
Or do I have to put the filename also ?Big Chungus
11/03/2021, 4:39 PMfun main() {
require("@pixi/app")
}
Big Chungus
11/03/2021, 4:40 PMrequire('@pixi/app')
or import * as Shit from '@pixi/app'
in js/tsAyfri
11/03/2021, 4:43 PMAyfri
11/03/2021, 4:46 PM