Where does Babel fit into the puzzle?

Babel comes to the rescue here by saying, Hey, we'll give you those language features you want to use, but that not enough browsers support. This becomes a massive relief as you start to use a larger and larger code base and run around some of the worst ways you used to have to architect larger JavaScript applications! Now if you want to use imports and new syntax and anything else, you can just do so!

Babel acts as a transpiler, which is a very fancy way of saying that it takes your JavaScript code that everything may not be able to be understood and turns it into JavaScript code that will be able to be understood! Babel will, based on different configurations, settings, and something called stages, allow you to opt in to all kinds of new syntax and language features and ensure that your code will run on most modern browsers! Granted, nothing is ever bulletproof and you will, of course, find different scenarios that aren't supported by some particular browser. You can't win them all, unfortunately!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.228.35