1 | Udemy Babel Preset for our Website
|
2 | ===================================
|
3 |
|
4 | This 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 |
|
9 | Install [Babel](https://www.github.com/babel/babel) locally. See this package's package.json
|
10 | for the correct peer dependency version:
|
11 |
|
12 | $ yarn add @babel/core
|
13 |
|
14 | Install the Udemy Babel Preset locally.
|
15 |
|
16 | $ yarn add babel-preset-udemy-website
|
17 |
|
18 | # Configuration
|
19 |
|
20 | Add 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 |
|
32 | See [Contributing](/README.md#contributing).
|