Electron/fable 3/elmish/react - a modern webpack 5 build #2884
Replies: 1 comment
-
Thanks a lot for sharing your experience and providing the template @tomcl! This will be very useful to other Fable users 👏 👏 I think I had also once an issue with source maps and hot reloading, but don't remember if/how we solved or whether we just disabled source maps 😅 I'll try to check. BTW, there's also a discussion to improve HMR by skipping files that haven't changed: #2869 Also, in one of latest releases I added an experimental argument to prevent watch compilation triggering too many times. Not sure if it will help in your case, but maybe you can try setting Line 60 in b0a610f |
Beta Was this translation helpful? Give feedback.
-
Objective
Discuss fine points of getting Fable 3 to work well with Electron in 2022
Context
new-build-trimmed
. That branch currently has working source maps, but they are a bit slow, see Specifics below.Specifics
Minor things we want to improve and/or document better:
.fs
files to the Webpack 5 dev server causes exactly the same HMR reload (all modules after changed one in compile order) twice.Example
Repo and branch to fork
File -> Force Exception
issie.sln
in Visual Studio 2022 or VSC/Ionide with dotnet 6/F#6 and changing a file e.g. any of the strings insrc\renderer\ui\Catalogueview.fs
.Beta Was this translation helpful? Give feedback.
All reactions