Sorry for reposting my question but I’m really eag...
# javascript
m
Sorry for reposting my question but I’m really eager to play with KotlinJS and can’t find a solution… If I compile my little KotlinJS/npm/webpack4 example it works with ‘npm start’ for the first time but if I change something the change gets not reflected. Browser cache ist turned off. The odd thing is that the modification date of kotlinApp.js is always 01.01.70!!! Issue report is here: https://youtrack.jetbrains.com/issue/CRKA-94
g
compare your webpack config to my starter here: https://github.com/gbaldeck/react-js-jvm-kotlin-multiplatform
All the files are picked up correctly with that config
Notice line 47 in webpack.common.js, thats where I tell webpack where the kotlin files (modules) are located
hmm looking at your config it looks like you're doing the same thing, the difference is you're using the KotlinWebpack plugin to build while I'm using gradle
m
Yes - it must be somewhere in KotlinWebpackPlugin. I’m on Mac. Maybe this makes also a difference. Moddate 01.01.70 makes me also a bit nervous.
g
Yeah must be in that plugin, switching to gradle for kotlin then webpack to bundle may be a good option. Plus your kotlin libraries and build tools can stay more up to date that way