There seems to be a solution for those working on three.js: Using Kotlin/JS to write THREE programs - #3 by Yokiano - Questions - three.js forum
There seems to be a solution for those working on three.js: Using Kotlin/JS to write THREE programs - #3 by Yokiano - Questions - three.js forum