In WSL2 file watching only works when used on the actual Linux filesystem. It does not work when working in the /mnt/c/...
directories. WSL2 actually works much better when working in /home/...
.
There are a couple open issues on https://github.com/microsoft/WSL (eg. #4739) about this. It is not specific to shadow-cljs
and affects many other file watchers.
For now if you want to work with the Windows files you should stick to WSL1 as it will be much faster. WSL2 is only faster when using the Linux filesystem but that makes working with those files from Windows a bit slower. WSL1 is still the better option when you want to work with the files from Windows IMHO.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…