What is the best way to work in "watch" mode? Kotl...
# javascript
s
What is the best way to work in "watch" mode? Kotlin incremental js compilation works fast, but webpack is extremely slow on kotlin std lib (1,5 Mb, ~5s to rebuild in watch mode). Kotlin DCE speeds up webpack build, but slows down incremental js compilation...
without stdlib - 1768ms for webpack. looks good
k
Does webpack reparse files that remain unchanged?
s
looks like he is checked only by modtime.
rsync -c
solves this
trying
noParse
option now...
k
What about
rsync
. Do you copy files somewhere before passing them to webpack (as I suggested before)?
Did you try to do it using Gradle sync task?
So I guess you copy everything and mtime gets updated, which signals webpack to reparse everything
s
What about
rsync
. Do you copy files somewhere before passing them to webpack (as I suggested before)?
yes, I'm running
rsync -c
from gradle
s
hmm... thanks!
Ah, sync task will remove everything
s
noParse: [/kotlin/]
webpack option speed ups to
1002ms
, even if kotlin.js is updated
after removing source map, webpack build takes
81ms