I'm wondering if it is somehow possible to convert...
# javascript
c
I'm wondering if it is somehow possible to convert (compile) a kotlin file to Javascript programmatically from inside of an kotlin-jvm project? Is this even possible in generell (a cli would work as well) during runtime?
r
m
Hmm, is the JS compiler fully written in Kotlin or does it have to run as part of other tooling? If only a JVM is needed to compile to JS you may be able to extend my project for that case 🤔 https://github.com/fluidsonic/fluid-compiler
c
Nice the kotlin compiler server would suite my case. I will give it a try
@Marc Knaup the fluid compiler looks like what I had in my mind when asking my question. If it would support compiling to js I think it would be pretty handy for my use case
b
Yes, this is possible. kotlin-compile-testing recently gained the ability to compile Kotlin/JS files: https://github.com/tschuchortdev/kotlin-compile-testing/pull/62