Hello. I'm planning to share some Code between Bac...
# multiplatform
d
Hello. I'm planning to share some Code between Backend (Kotlin/JVM, Gradle) and Frontend (Existing Javascript Application, NPM + webpack). I thought using the kotlin multiplatform capabilities to build a library that works on both platforms was a good catch for this problem. I just created a multiplatform gradle-project from IntelliJ and it builds for alle three platforms. But the output for the javascript target is a jar file with the compiled javascript code embedded. I'd like to use the generated javascript code in my existing webapp. Is there any way to configure gradle to output just a commonjs or umd module that I can directly require via webpack? Thanks a lot!