Last active
February 6, 2019 02:54
-
-
Save CHNB128/908cbeced4ba77b091f7c71d529e2108 to your computer and use it in GitHub Desktop.
My Babel setup for JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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