https://github.com/postlight/babel-preset-lux
A babel preset containing all of the plugins required by Lux.
https://github.com/postlight/babel-preset-lux
Last synced: 10 months ago
JSON representation
A babel preset containing all of the plugins required by Lux.
- Host: GitHub
- URL: https://github.com/postlight/babel-preset-lux
- Owner: postlight
- License: mit
- Created: 2016-06-04T18:54:45.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T13:35:35.000Z (about 9 years ago)
- Last Synced: 2025-08-02T22:48:56.910Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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']
});
```