Now I am struggling using my kotlin/js code from J...
# javascript
b
Now I am struggling using my kotlin/js code from JS… do I have to declare the functions in a special way so they get recognized?
a
You might need to use
@JsName
to make sure the functions don't get mangled. If you're using Dead Code Elimination, you also might have to add them as explicitly kept.
b
I'm using the default JsBrowserWebpack
not sure if it does DCE
I'm doing import * as labcontrol from '@/labcontrol.js'
but then I am expecting to be able to call the function myws from it
The fun main() runs though