/babel-preset-lux

A babel preset containing all of the plugins required by Lux.

Primary LanguageJavaScriptMIT LicenseMIT

babel-preset-lux

A babel preset containing all of the plugins required by Lux.

Install

npm install --save-dev babel-preset-lux

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["lux"]
}

Via CLI

babel script.js --presets lux

Via Node API

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