In a multiplatform project I'm doing ```kotlin.tar...
# javascript
j
In a multiplatform project I'm doing
Copy code
kotlin.targets.all { target ->
  target.compilations.all { compilation ->
    compilation.compileKotlinTask.dependsOn(generate.get())
  }
}
to add a dependency on a source-generating task. My project is configured with both legacy and IR for JS, but when I print out the targets that this applies to the IR ones are missing:
Copy code
compilation 'main' (target jsLegacy (js))
compilation 'test' (target jsLegacy (js))
compilation 'main' (target jvm (jvm))
compilation 'test' (target jvm (jvm))
compilation 'main' (target metadata (common))
IR compilation seems to be occurring first, which results in an empty artifact that eventually fails downstream. Is it expected that the IR compilation tasks would not show up here?
This seems only emblematic of "both" mode. In IR only or legacy only it gets called. Ignoring the problem then