o.semen
07/15/2019, 9:04 AMimplementation(npm("@jetbrains/kotlin-react", "16.6.0-pre.67"))
implementation(npm("@jetbrains/kotlin-react-dom", "16.6.0-pre.67"))
in js{}
and js{ browser {} }
sections
as well as
kotlinFrontend {
npm {
dependency("@jetbrains/kotlin-react")
dependency("@jetbrains/kotlin-react-dom")
dependency("core-js", "^2.0.0")
dependency("react", "16.8.3")
dependency("react-dom", "16.8.3")
}
}
but it does not help.snrostov
07/15/2019, 9:44 AM@jetbrains/…
) not supported in Kotlin/JS Gradle plugin. There is workaround for that: you can create custom webpack config in webpack.config.d
and it will be injected into webpack config. See example here: https://github.com/snrostov/kotlin-full-stack-application-demo/blob/snrostov/kotlin-1.3.40/client/webpack.config.d/03.resolve.js
Also there is issues with "@jetbrains/kotlin-react"
publication.snrostov
07/15/2019, 9:45 AM