Application Development: Babel transpiler to use ES6 today
ES6 new features
Babel as a tool
Babel may be used in the flow of any modern build tool, like Grunt, Gulp, Brunch, Broccoli, etc. Supported by frameworks: Ember, Meteor, Rails, Sails. Babel CLI is installed like any other node.js npm module. There is a require hook require(“babel/register”). In case of browser, you can use special babel-core/browser.js module to place ES6 code right into the page inside tag script type=”text/babel”. Babel has very close integration with React.js [http://facebook.github.io/react] Web Application Development platform, designed and used by Facebook. There is out of the box support for JSX format. Even modern IDEs already support Babel as a translator. E.g., WebStorm has ability to add a watcher to process all .js and .jsx files into ES5 code with map files. There are standard workflows to use Babel with test engines: Karma, Jest and Mocha. There is also some user plugins system for extending and customization. But it’s not stable yet and has lack of documentation. Babel supports AMD and CommonJS module systems.