I haven't actively developed with kotlin-js in a while, as I've been waiting for certain features to make it better for sharing client side logic, but when I was messing around with it I found using the kotlin-js-dce plugin essential as it spits all the libraries and js files that you use into a single folder that can be used. Once you have all the js files in one place, you can use normal means of packaging js files