Dear all, I am trying to import files generated f...
# javascript
a
Dear all, I am trying to import files generated from multiplatform basic project into e.g. Visual Code Studio. First of all, I am completely newbie in JS, so please, be kind 🙂 I have simple class with only one helloWorld() function as below
Copy code
import kotlin.js.JsExport

@JsExport
fun helloWorld(): String {
    return "Hello World"
}
setup in build.gradle.kts is
Copy code
js(IR) {
        browser {
        }
        binaries.executable()
    }
After importation generated files in VCS, my kotlin function is not visible (Uncaught ReferenceError: helloWorld is not defined) and generated files are
t
Use
Copy code
browser {
    commonWebpackConfig {
        output?.library = null
    } 
}
for import in
window
1
Feel free to vote for more transparent import.