If I download a Kotlin/JS JAR-files manually from https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.3.3/pom or https://mvnrepository.com/artifact/org.jetbrains.kotlin-wrappers/kotlin-wrappers-bom/1.0.0-pre.501 then the compiled JS-files are not present in the JAR-files. However, if I get them through Gradle and check out the contents of the external libraries then compiled JS-files are present.
I had assumed it was the same JAR-file but apparently not. Is the JAR-file dynamically created due to a specific request from Gradle? Maybe so, since the JS-files downloaded by Gradle only contains the LEGACY output, and that fits with my project still compiling with LEGACY.
I ask because Kotlin/JS can compile with two compilers "simultaneously" (IR and LEGACY by using BOTH), and I wanted to see how the compiled JS-files are structured in third-party libraries when using this.