UNPKG

729 BMarkdownView Raw
1Udemy Babel Preset for our Website
2===================================
3
4This is the main configuration used by our
5[`udemy/website-django/static/`](https://github.com/udemy/website-django/tree/master/static/.babelrc) codebase.
6
7# Installation
8
9Install [Babel](https://www.github.com/babel/babel) locally. See this package's package.json
10for the correct peer dependency version:
11
12 $ yarn add @babel/core
13
14Install the Udemy Babel Preset locally.
15
16 $ yarn add babel-preset-udemy-website
17
18# Configuration
19
20Add an `extends` section to your `.babelrc` and specify `udemy` as an extended configuration.
21
22```js
23// At .babelrc
24
25{
26 "presets": ["udemy-website"]
27}
28```
29
30# Contributing
31
32See [Contributing](/README.md#contributing).