Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gravity-ui/babel-preset
https://github.com/gravity-ui/babel-preset
babel preset
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gravity-ui/babel-preset
- Owner: gravity-ui
- License: mit
- Created: 2022-08-24T14:25:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T14:56:59.000Z (over 2 years ago)
- Last Synced: 2024-10-08T06:14:23.183Z (4 months ago)
- Topics: babel, preset
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @gravity-ui/babel-preset
Babel preset for Gravity UI projects
## Install
```
npm install --save-dev @gravity-ui/babel-preset
```## Usage
### Via `.babelrc`
```json5
{
"presets": [
"@gravity-ui/babel-preset",
{
"env": {modules: false}, // defaults to {}
"runtime": {useESModules: true}, // defaults to {}
"typescript": true, // defaults to false
"react": {runtime: "automatic"} // defaults to {}
}
]
}
```