Babel is set up by installing
@babel/preset-env as development dependencies and providing a configuration in a .babelrc file.
babel/cli provides Babel’s command-line interface while
Babel is run via the command line with arguments specifying the code Babel should run on and the location its output should be stored. The source directory is the first argument and the output location is specified with the
babel src -d out
Babel can be configured to target a list of browsers and browser versions for its output to be compatible with using a .browserslistrc file.