I created a kotlin multiplatform library then crea...
# javascript
c
I created a kotlin multiplatform library then created a number of kotlin/js classes. How can I use the compiled kotlin/js code (module) in a different frontend application.
a
I use multiplatform plugin, but for kotlin/js should be the same: You could generate a node library by using
jsNodeDevelopmentLibraryDistribution
gradle task and then import this library into another node project by declaring it as a dependency in package.json:
Copy code
{
...
  "dependencies": {
    "mylib": "file:../build/developmentLibrary",
    ...
  }
}
c
Its for the browser.
These are the built files. I have no idea how to include them in my html page as javascript code.