Rhiad Jaffar
12/14/2021, 12:47 PMmain
or components in your kotlin code.
Many thanks!turansky
12/14/2021, 12:53 PMRobert Jaros
12/14/2021, 12:53 PMRhiad Jaffar
12/14/2021, 1:22 PMIR compiler - requirement?Not a requirement as such - just trying to use IR compiler instead of Legacy compiler as we are aware the Legacy compiler will likely be depreated at some point and trying to stay ahead of the game.
Have you tried this option?
https://github.com/rjaros/kvision-examples/blob/master/template/webpack.config.d/webpack.js#L4Not tried this one yet - will give that a go and feed back soon thank you!
turansky
12/14/2021, 1:31 PMturansky
12/14/2021, 1:32 PMturansky
12/14/2021, 1:33 PMRhiad Jaffar
12/14/2021, 2:59 PMRhiad Jaffar
12/14/2021, 5:15 PMconfig.devServer.hot
and config.devtool
and similar module.hot
implementation with what we had but it was this which was the clincher:
https://github.com/rjaros/kvision-examples/blob/master/template/build.gradle.kts#L32
Looks like overriding default devServer seems to have done the trick.
Either way - very big thank you!
Also - some really great stuff in kvision
and the examples are really great! 👍🏼 🙇🏼 👏🏼
Thanks again.Gabriel Duncan
12/15/2021, 11:21 PMGabriel Duncan
12/15/2021, 11:21 PMRhiad Jaffar
12/16/2021, 9:32 AMrunTask
and webpackTask
here:
https://github.com/rjaros/kvision-examples/blob/master/template/build.gradle.kts#L29
Resources being included (if you have e.g. index.html
file outside the resources
folder like in the example):
https://github.com/rjaros/kvision-examples/blob/master/template/build.gradle.kts#L63
Webpack devServer config - adds hot
reload and devtool
js map config:
https://github.com/rjaros/kvision-examples/blob/master/template/webpack.config.d/webpack.js
Some kind of module.hot
implementation (kvision
provides this for you but you can roll your own):
HMR
external interface:
https://github.com/rjaros/kvision/blob/6453b9fa60500f51ca786fb036a8d7ddc50435ea/src/main/kotlin/io/kvision/HMR.kt#L39
startApplication
wrapper which adds HMR:
https://github.com/rjaros/kvision/blob/51d7f4cf0acb5d777ce1198ad885b5da8b548dca/src/main/kotlin/io/kvision/Application.kt#L64
Example of how/where startApplication
is used:
https://github.com/rjaros/kvision-examples/blob/master/template/src/main/kotlin/com/example/App.kt#L37
Do you have all of these implemented?Gabriel Duncan
12/16/2021, 2:37 PM