In my newest kotlin/js lib, I wanted to compile a ...
# javascript
h
In my newest kotlin/js lib, I wanted to compile a webjar. Using the predefined ways to do it was overkill - npm installs a ton of packages that I don't need, so I just copied the module .js file into
META_INF/resources/webjars/${project.name}/${project.version}
. This works perfectly fine. But when I use the library in a browser client, it depends not only on kotlin.js, but also on another one of my js libraries. In order to simplify use of this on a client, could I concatenate all the needed sources into one file? Or maybe there is a way to embed dependencies into the exported .js file somehow? Has anyone got any experience to share with me about this?