babel

No description

Options

NameDescription
-f, --filename <filename>The filename to use when reading from stdin. This will be used in source-maps, errors etc
--presets <list>A comma-separated list of preset names
--plugins <list>A comma-separated list of plugin names
--config-file <path>Path to a .babelrc file to use
--env-name <env>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'
--root-mode <mode>The project-root resolution mode
--source-type <type>
--no-babelrcWhether or not to look up .babelrc and .babelignore files
--ignore <list>List of glob paths to **not** compile
--only <list>List of glob paths to **only** compile
--no-highlight-codeEnable or disable ANSI syntax highlighting of code frames
--no-commentsWrite comments to generated output
--retain-linesRetain line numbers. This will result in really ugly code
--compact <mode>Do not include superfluous whitespace characters and line terminators
--minifiedSave as many bytes when printing. (false by default)
--auxiliary-comment-before <comment>Print a comment before any injected non-user code
--auxiliary-comment-after <comment>Print a comment after any injected non-user code
-s, --source-maps <mode>
--source-map-target <string>Set `file` on returned source map
--source-file-name <string>Set `sources[0]` on returned source map
--source-root <filename>The root from which all sources are relative
-x, --extensions <extensions>Comma separated list of extensions to compile when a directory has been the input. [js,ts,jsx,tsx]
--keep-file-extensionPreserve the file extensions of the input files
-w, --watchRecompile files on changes
--skip-initial-buildDo not compile files before watching
-o, --out-file <file>Compile all input files into a single file
-d, --out-dir <directory>Compile an input directory of modules into an output directory
--relativeCompile into an output directory relative to input directory or file
-D, --copy-filesWhen compiling a directory copy over non-compilable files
--include-dotfilesInclude dotfiles when compiling and copying non-compilable files
--no-copy-ignoredExclude ignored files when copying non-compilable files
--verboseLog everything. This option conflicts with --quiet
--quietDon't log anything. This option conflicts with --verbose
--delete-dir-on-startDelete the out directory before compilation
--out-file-extension <extension>Use a specific extension for the output files
-V, --versionOutput the version number
-h, --helpOutput usage information