Is there an example code how to use `@JsExport` ? ...
# webassembly
s
Is there an example code how to use
@JsExport
? It's mentioned in the docs, but it's to short and I don't get it working. I want to make this call this. How to achieve that?
1
s
I think our current Gradle plugin has a webpack configured to transpile ES module into a global variable (
composeApp
in your case). This variable holds a promise to module exports. And docs were written for the pure setup without webpack. This should work:
Copy code
composeApp.then(exports => {
     exports.default.processFile(/*...*/);
});
👍 1
s
Thank you, that indeed worked. 🙂
a
How to get composeApp ?