'What does babel do while webpack is working?

I find out that webpack is using @babel/core and @babel/preset-react and babel-loader via its package.json.

So I'm wondering what these built-in packages have done as webpack works?

p.s. I'm not talking about Loaders/Plugins that should be added manually to webpack.config.js.

Thanks a lot for your answer.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source