When I run the command:"/summon villager ~~~ minecraft:as_baby", it summoned an adult villager instead of a baby villager. But other mobs(such as zombies) don't have the same issue(i.e: when I run the command:"/summon zombie ~~~ minecraft:as_baby", it summoned a baby zombie and when I killed it, it will give me proper exps)
Thank you for your report!
However, this issue has been closed as Working as Intended. You have to use "entity_born" instead of "as_baby" in order to spawn a baby Villager.
If you need help or have a suggestion you might like to follow a link below.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π§ Suggestions β π Minecraft Wiki