Join Slack
Powered by
I watched KotlinConf video "How to Build a React A...
# javascript
x
xap4o
12/26/2017, 8:03 PM
I watched KotlinConf video "How to Build a React App in Kotlin by Dave Ford". Now I'm trying to reproduce this setup for rapid development. But I have problem: create-react-kotlin-app@1.0.6 doesn't perform hot module swapping for Kotlin code (only for CSS). And exactly this behaviour is described in docs
https://github.com/JetBrains/create-react-kotlin-app/blob/3906d92c8111608c662ad2abdd3140f62b6368ec/packages/react-scripts/config/webpackDevServer.config.js#L65
But somehow during live demo speaker managed to get it work. I wonder how.
b
bashor
12/28/2017, 4:32 PM
cc
@Filipp Riabchun
@houston
@daveford
h
houston
12/28/2017, 4:49 PM
I will check it, it might be just bug introduced recently. Thanks for reporting
houston
12/28/2017, 4:52 PM
@xap4o
As about “Hot module swapping”, do you mean hot module replacement without page reload?
x
xap4o
12/28/2017, 8:29 PM
@houston
yes, exactly
h
houston
12/29/2017, 8:55 AM
@xap4o
I’m afraid that HMR is not supported for kotlin compiled code yet. In that video – there shouldn’t be HMR, it was just quick live reload.
x
xap4o
12/29/2017, 8:11 PM
@houston
hm, ok. Hopefully HMR will be supported in the future.
Open in Slack
Previous
Next