Moussa
06/03/2022, 5:39 PMfetch
instead of XMLHttpRequest
Is there is a documentation for that part in KMM documentation or a workaround that you know of?andylamax
06/03/2022, 6:54 PMMoussa
06/03/2022, 6:58 PMJS
targets
But if I had to choose between one of them I would choose the NodeJS
kotlin {
js(LEGACY) {
this.binaries.executable()
this.useCommonJs()
browser {
webpackTask {
this.output.libraryTarget = "var"
}
commonWebpackConfig {
this.cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
}
}
distribution {
this.directory = File("$projectDir/build/browser")
}
}
}
js("nodeJS", IR) {
this.binaries.library()
this.useCommonJs()
nodejs {
distribution {
this.directory = File("$projectDir/build/nodejs")
}
}
}
}
andylamax
06/03/2022, 7:27 PMHow about??
kotlin {
JS(IR) {
browser()
nodejs()
}
}
Moussa
06/04/2022, 7:47 PM