UNPKG

babel-preset-lux

Version:

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

36 lines (24 loc) 439 B
# babel-preset-lux > A babel preset containing all of the plugins required by [Lux](https://github.com/postlight/lux). ## Install ```bash npm install --save-dev babel-preset-lux ``` ## Usage ### Via `.babelrc` (Recommended) **.babelrc** ```json { "presets": ["lux"] } ``` ### Via CLI ```bash babel script.js --presets lux ``` ### Via Node API ```javascript require('babel-core').transform('code', { presets: ['lux'] }); ```