All apps/Babel

Babel

babel

The JavaScript compiler, with a CLI for compiling files and directories.

Runs as babel|macOS, Linux, Windows|babel.dev

Autocomplete

Fig spec, with what the manifest adds · 37 options
Published once and never changed; check the digest before caching
sha256
6f1e35b942bbb62f73abdc859c657d79b383786fb8cd3c1d8c2d81be2b606b8c
Size
7588 bytes
OptionsOn babel itself
-f--filename
The filename to use when reading from stdin. This will be used in source-maps, errors etc <filename>
--presets
A comma-separated list of preset names <list>
--plugins
A comma-separated list of plugin names <list>
--config-file
Path to a .babelrc file to use <path>
--env-name
The name of the 'env' to use when loading configs and plugins. Defaults to the value of BABEL_ENV, or else NODE_ENV, or else 'development' <env>
--root-mode
The project-root resolution mode <mode>
--source-type
<type>
--no-babelrc
Whether or not to look up .babelrc and .babelignore files
--ignore
List of glob paths to **not** compile <list>
--only
List of glob paths to **only** compile <list>
--no-highlight-code
Enable or disable ANSI syntax highlighting of code frames
--no-comments
Write comments to generated output
--retain-lines
Retain line numbers. This will result in really ugly code
--compact
Do not include superfluous whitespace characters and line terminators <mode>
--minified
Save as many bytes when printing. (false by default)
--auxiliary-comment-before
Print a comment before any injected non-user code <comment>
--auxiliary-comment-after
Print a comment after any injected non-user code <comment>
-s--source-maps
<mode>
--source-map-target
Set `file` on returned source map <string>
--source-file-name
Set `sources[0]` on returned source map <string>
--source-root
The root from which all sources are relative <filename>
-x--extensions
Comma separated list of extensions to compile when a directory has been the input. [js,ts,jsx,tsx] <extensions>
--keep-file-extension
Preserve the file extensions of the input files
-w--watch
Recompile files on changes
--skip-initial-build
Do not compile files before watching
-o--out-file
Compile all input files into a single file <file>
-d--out-dir
Compile an input directory of modules into an output directory <directory>
--relative
Compile into an output directory relative to input directory or file
-D--copy-files
When compiling a directory copy over non-compilable files
--include-dotfiles
Include dotfiles when compiling and copying non-compilable files
--no-copy-ignored
Exclude ignored files when copying non-compilable files
--verbose
Log everything. This option conflicts with --quiet
--quiet
Don't log anything. This option conflicts with --verbose
--delete-dir-on-start
Delete the out directory before compilation
--out-file-extension
Use a specific extension for the output files <extension>
-V--version
Output the version number
-h--help
Output usage information
ArgumentsPositional, in order
<input>
· optional · repeatable · filepaths