Question: how does one actually vend KotlinJS libraries? Through Maven, npm, or…both?
Suppose you have a KotlinJS library and a KotlinJS application that uses rollup and consumes that library. Right now, it looks like I have to vend through Maven (for types and externals and such when compiling Kotlin) and through npm, so that the generated KotlinJS application code (which
requires the library code) can actually get merged together into a proper IIFE-type JS file.
This seems kinda Bad though as now the user (and the maintainer) has two versions to keep in sync – Maven and npm. I’m thinking about writing a plugin similar to the iconic
rollup-plugin-node-resolve that does the same thing, except using JARs/classpaths instead of
node_modules. Then I could vend solely through Maven, and rollup would just pull from the JAR for modules.