This is the main configuration used by our
udemy/website-django/static/
codebase.
Install Babel locally. See this package's package.json for the correct peer dependency version:
$ yarn add @babel/core
Install the Udemy Babel Preset locally.
$ yarn add babel-preset-udemy-website
Add an extends
section to your .babelrc
and specify udemy
as an extended configuration.
// At .babelrc
{
"presets": ["udemy-website"]
}
See Contributing.