The default riot babel preset
JavaScript
Latest commit cccb757 Sep 27, 2016 @GianlucaGuarini GianlucaGuarini committed on GitHub Merge pull request #14 from riot/greenkeeper-mocha-3.1.0
Update mocha to version 3.1.0 🚀

readme.md

The default riot babel preset

Build Status

This preset includes all the default babel es2015 plugins Allowing the use of the es2015 modules also in any riot tag

Installation

$ npm install babel-preset-es2015-riot --save-dev

Usage

Add a .babelrc file in the root of your project

{
  "presets": [ "es2015-riot" ]
}

If you want to use the babel helpers you must change the .babelrc file in this way:

{
  "presets": [ "es2015-riot" ],
  "plugins": [ "external-helpers-2" ]
}