Skip to content

Instantly share code, notes, and snippets.

@CHNB128
Last active February 6, 2019 02:54
Show Gist options
  • Save CHNB128/908cbeced4ba77b091f7c71d529e2108 to your computer and use it in GitHub Desktop.
Save CHNB128/908cbeced4ba77b091f7c71d529e2108 to your computer and use it in GitHub Desktop.
My Babel setup for JavaScript
yarn add -D \
@babel/core \
@babel/cli \
@babel/node \
@babel/preset-env \
@babel/register \
babel-plugin-pipe-operator \
babel-plugin-closure-elimination \
babel-plugin-auto-await \
babel-plugin-macros \
babel-plugin-implicit-return \
babel-plugin-function-composition
echo "
{
"plugins": [
"pipe-operator",
"macros",
"auto-await",
"implicit-return",
"closure-elimination",
"function-composition"
],
"presets": ["@babel/preset-env"]
}
" > .babelrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment