A couple of jams ago, I exported to html using godot 4. I didn't have any problems with it, and everything worked well. This is the tutorial I followed:
Note:
1. my game was entirely 2d
2. I only used basic animations
3. Nothing about my code was particularly resource intensive
Your mileage may very, but it worked for me.