/babel-preset-es2015-riot

babel 6 preset similar to the es2015 preset, but this one works with riot

Primary LanguageJavaScript

babel-preset-es2015

Babel preset for all es2015 plugins, with allowTopLevelThis enabled

Install

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

Usage

Via .babelrc (Recommended)

.babelrc

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

Via CLI

$ babel script.js --presets es2015-riot

Via Node API

require("babel-core").transform("code", {
  presets: ["es2015-riot"]
});