Skip to content

Using ES6 via Babel

EGOISTIAN edited this page Mar 10, 2016 · 2 revisions

The default setup with Babel is:

  • babel-runtime
  • babel-plugin-transform-runtime
  • babel-preset-es2015
  • babel-preset-stage-0

You can use CLI argument --use react to enable following preset:

  • babel-preset-react

Feel free to import babel-polyfill in your app, it's shipped with tooling.

Clone this wiki locally