I just started looking into Babel. From my understanding, Babel attempts to convert ES6 code into older JS versions for better browser support. This is pretty simple for stuff like template literals. And it is even possible with classes. But how does it handle import?
I am also confused why sometimes it converts import into require, because require is node.js specific, and it definitely would not work on any browser.