Is it expected that with 1.4.0 and `kotlin { js(IR...
# javascript
v
Is it expected that with 1.4.0 and
kotlin { js(IR) { useCommonJs(); binaries.executable(); nodejs() }
`tasks.compileKotlinJs.get().outputFile.absolutePath`evaluates to
<project dir>/build/classes/kotlin/main/<project>.js
but that there are no such files but only a folder
default
with content?
👌 1
🚫 1
i
It is expected, because in IR compiler you have 2 “compilation” tasks,
compileKotlinJs
is about compilation of IR (klib file format) and you have
compile(Development|Production)ExecutableKotlinJs
and it is task which outputs js file, and it will point on necessary place
v
Yeah, I found these tasks and use them as input for ncc now. But still, why does the
compileKotlinJs
task has that file defined as
ouptutFile
if it is not an output file with the current configuration. This is highly confusing and feels wrong.