- Notifications
You must be signed in to change notification settings - Fork7
GitHub.com's Babel configuration
License
github/babel-preset-github
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a Babel preset which GitHub.com uses to transpile our JavaScript. It supports ES2018, plus a few extra non-standard features which we use to make development easier.
Pull requests that fix bugs are welcome. We will likely only add new plugins as they are needed for the GitHub.com codebase.
To install you need node and npm:
$ npm i -D babel-preset-github
Then use the preset in your.babelrc
{"presets": ["github"]}
This example only includes the polyfills and code transforms needed for a specific list of browsers that GitHub supports. You can change this by passing in a valid browserlist:
{"presets": [["github", {"targets": {"browsers": ["last 2 versions","safari >= 7"]}}]]}
The project is available as open source under the terms of theMIT License.
When using the GitHub logos, be sure to follow theGitHub logo guidelines.
About
GitHub.com's Babel configuration
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.