Have a look here - hopefully it answers your question:
New build system in our main repository - Announcements - Babylon.js (babylonjs.com)
TLDR: the dist
folders are no longer part of source control - they can be built or you can download from CDN.
edit: I think the dist
folder should be removed from legacy
and a readme.md put there with instructions.