Is it possible to set a module name with a `/` in ...
# javascript
q
Is it possible to set a module name with a
/
in it? I would like my define in my build.gradle.kts:
Copy code
js(IR) {
    moduleName = "@company/library"
    nodejs()
    binaries.library()
    generateTypeScriptDefinitions()
}
What I noticed though is that this affects the generated code. Tests fail to run if I use
@company/library
, as I can see that the generated js code is stored in
/build/compileSync/js/test/testDevelopmentExecutable/kotlin/@company/library.js
. Instead, tests work if I set the name to be
library
, and the
library.js
file is generated at
/build/compileSync/js/test/testDevelopmentExecutable/kotlin/library.js
. Is this expected?
a
@Ilya Goncharov [JB] ^^
p
i think rather there should be a way to configure organization (then you could keep moduleName as just
library
)
👍 1
q
I've created a bug report