https://github.com/launchpadlab/babel-preset
Shareable babel presets
https://github.com/launchpadlab/babel-preset
Last synced: 4 months ago
JSON representation
Shareable babel presets
- Host: GitHub
- URL: https://github.com/launchpadlab/babel-preset
- Owner: LaunchPadLab
- Created: 2017-11-07T22:04:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-18T18:17:30.000Z (over 6 years ago)
- Last Synced: 2025-04-09T19:55:40.178Z (10 months ago)
- Language: JavaScript
- Size: 76.2 KB
- Stars: 0
- Watchers: 19
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @launchpadlab/babel-preset
Shareable babel presets to use across projects.
## Usage:
```js
// .babelrc:
// To use a specific config
{
presets: ['@launchpadlab/babel-preset/es6'],
}
// To use the default config (react)
{
presets: ['@launchpadlab/babel-preset'],
}
```
This preset uses [@babel/preset-env](https://babeljs.io/docs/en/babel-preset-env) under the hood. To pass options down to that preset, you can pass an `env` option at the top level:
```js
{
// Will skip module transformations
presets: [['@launchpadlab/babel-preset', { env: { modules: false } }]],
}
```
## Migration Guides
- [v2.0.0](migration-guides/v2.0.0.md)