/babel-preset-marpat

Babel preset for all es2015 plugins supported by Marpat

Primary LanguageJavaScript

babel-preset-marpat

This is a babel preset for marpat. This preset will allow you to use marpat with babel. Initial work done by for this preset done by Scott Robison. I have simply forked his camo preset and modified it to match the marpat repo and make it easier to find.

Testing to be added in the future.

Install

$ npm install --save-dev babel-preset-marpat

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["marpat"]
}

Via CLI

$ babel script.js --presets marpat 

Via Node API

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