facebook

Meet Babel 7 huge release!

Meet Babel 7 huge release!
Average rating: 0
(0 votes)

Thanks! You’ve rated this material!

As you might know, Babel is a JS transpiler that is popular for its ability to turn ES6 or ES7 into the code that can run on your browsers and devices. As most of them still support older standards. With Babel, you can write your code in the latest conventions and not worry about compatibility errors. It’s been 3 years from the las Babel update – Babel 6. And now we want you to meet Babel 7 huge release!

Babel is now faster and comes with an upgrade tool, JavaScript configurations, configuration ‘overrides’, options for size minification, support for React’s JSX Fragments, and what is really awesome – now it supports TypeScript!

Here are some of the major updates for Babel 7:

  1. The new upgrade tool called babel-upgrade. This tool will automatically make any upgrade changes in the package.json and .babelrc files.
  2. JS configuration files: babel.config.js(not a replacement for .babelrc), a great addition that can be useful for certain use-cases.
  3. Overrides in Babel will allow you to specify different configurations per glob.
  4. New Babel itself is faster so it should take less time to build. Hurray!
  5. Babel is now able to parse TypeScript syntax using a new package called @babel/preset-typescript.
  6. Automatic Polyfilling! This will allow us to use other features like Promises and Symbols in environents that don’t even support them. More than just change the syntax of the code. It can implement built-in functions and objects.
  7. The @babel/core package also has a new option called caller that will allow us to pass any metadata to our presets and plugins.

Find out more about these updated and features in the official Babel recourse!

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111