I’m planning to add fable my full js project (nodejs + react). After reading a lot about other compile to js languages, I think f# with fable is one of the best, but one thing that bugs me a lot is the compilation speed.
With small projects fable works great, but fearing another typescript I put fable in stress. Here’s the example repo:
This has about 100.000 lines of example code. Of course, it’s not going to be easy parsing, but I expected some sort of incremental compilation. Any changes take 80s to recompile.
I did try to reduce the project to 17.000 lines of code, more realistic, splitted in three projects. Takes around 10s per file change, which I’d like to reduce to 5s at maximum.
How do companies with large fable codebases deal with this? Is there some sort of .fsproj magic that can help reduce compile times? Should every project have at maximum 5k lines of code? I don’t know dotnet enough to answer these questions, so any feedback would be really welcome.