When using the JS IR compiler backend with the `"-...
# javascript
a
When using the JS IR compiler backend with the
"-Xir-per-module"
flag, we get separate files (which is great!) For local project dependencies, we get filenames like
${rootProject.name}-{project.name}.js
. From a Maven artifact like
org.jetbrains.kotlinx:kotlinx-serialization-core
, we get
kotlinx-serialization-kotlinx-serialization-core.js
I’m assuming the
kotlinx-serialization
prefix is because that's also the
rootProject.name
in the
kotlinx.serialization
repo (and this lines up with the other artifacts). But I can't figure out how to get that prefix programatically. Instead, I'm stuck hardcoding values for all our external dependencies. Is there a way to get that prefix for a Kotlin/JS maven artifact within Gradle? If there isn't a way to get that prefix programatically, using
rootProject.name
(instead of
group
) makes it really hard to interact with those files in an automated fashion…
👍 2
3
Created https://youtrack.jetbrains.com/issue/KT-49759 for anyone else struggling with similar issues
👍 2