Mahak Narayan Singh explains how Babel does it's job.

Have you ever thought how this awesome tool which you use in your daily life works under the hood? How does compilers you use in our daily life work? Do you need your own customized compilation? You should find this article beneficial then.

https://medium.com/@makk.bit/babel-under-the-hood-63e3fb961243