I have a main class in the shared directory that fastOptJS::webpack manages to expose to the browser using the configuration:
scalaJSUseMainModuleInitializer := true,
mainClass in (Compile, run) := Some("path.to.package.Main")
However, I can't seem to get this executable class exposed in the JVM context even if I move the mainClass in (Compile, run) statements into the shared settings or duplicate it into the jvm settings.
Do JVM executables have to live in the jvm directory structure or can they occupy positions in the shared folder?
Any suggestions?
Here is a bare bones project that reproduces the problem: https://github.com/dragonfly-ai/mainclassbug