coletz
06/26/2019, 6:31 AMkotlin{
...
js {
browser {
}
}
}
2)
jvmBackendJar {
dependsOn(jsBrowserWebpack)
from(new File(jsBrowserWebpack.entry.name, jsBrowserWebpack.outputPath))
}
how can I replicate these tasks without kotlin 1.3.40? Can someone share an older mpp config with js?
Thanks 🙂h0tk3y
06/26/2019, 1:27 PMkotlin-frontend
plugin that could run webpack. You can try it: https://github.com/Kotlin/kotlin-frontend-plugincoletz
06/29/2019, 3:56 PMapply plugin: 'org.jetbrains.kotlin.frontend'
apply plugin: 'kotlin2js'
And got the error Cannot add extension with name 'kotlin', as there is an extension already registered with that name.
So i removed the kotlin2js plugin and got this issue:
The 'java' plugin has been applied, but it is not compatible with the Android plugins.
Removing both let me compile the project without any issue