Ola Adolfsson
08/10/2024, 5:20 PMAndraz
08/10/2024, 5:57 PMCLOVIS
08/12/2024, 7:41 AMmain-code/ ← js, JVM
complex-core/ ← js, WASM, JVM
The complex module would be compiled for the JVM, JS and WASM. Then, when creating a JVM app, you import the complex module as a normal dependency. However, when creating the JS website, you import the complex module's WASM output as an additional import, like you would import an NPM library.
As a bonus, you can also compile the complex code to JS as a fallback in case the user's browser doesn't support WASMOla Adolfsson
08/13/2024, 6:22 AM