https://github.com/zapier/babel-preset-zapier
🏯 A babel preset for Zapier
https://github.com/zapier/babel-preset-zapier
Last synced: 4 months ago
JSON representation
🏯 A babel preset for Zapier
- Host: GitHub
- URL: https://github.com/zapier/babel-preset-zapier
- Owner: zapier
- Created: 2017-12-15T09:42:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T14:21:34.000Z (about 6 years ago)
- Last Synced: 2025-10-07T02:51:01.331Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 246 KB
- Stars: 0
- Watchers: 13
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🏯 babel-preset-zapier
A babel preset for Zapier. Heavily inspired by [`babel-preset-airbnb`](https://github.com/airbnb/babel-preset-airbnb).
## Installation
`yarn add --dev @zapier/babel-preset-zapier`
## Usage
Create your `.babelrc` file in the root of your project:
```
{
"presets": ["@zapier/babel-preset-zapier"]
}
```
## Features
- Uses [`babel-preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env)
- Defaults to a sane list of browser versions (based on [https://github.com/zapier/browserslist-config-zapier](browserslist-config-zapier)).
- ES modules by default.
- Handles extra configuration for testing with Jest for you.
- Supports dynamic `import()` statements, object rest-spread and class properties.
- Removes PropTypes definitions in production.
- Compiles GraphQL tagged template strings in production.
- Configures `emotion` to add filepaths to classNames by default.
Note that `babel-preset-zapier` currently does not support babel versions lower than v7.
## Publishing / Deploying
- Use [semantic versioning](https://semver.org/) for deciding how to bump versions.
- `npm publish` to publish the new version to NPM.