[breaking] remove writeStatic
to align with Vite
#5618
Merged
writeStatic
to align with Vite
#5618