MinecraftForge JavaScript coremods using Kotlin/JS (aka my worst idea yet)
Open if you dare
The main source code can be found inside the koremod
subproject, here
This code is build with the kotlin/js nodejs target, then processed by esbuild.
esbuild includes a loader that properly exposes the loaded kotlin/js module to the global scope.
The build setup is incredibly fragile so I wouldn't be surprised if it breaks.