babel Command Examples

A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax. More information: https://babeljs.io/.

babel {{path/to/file}}

babel {{path/to/input_file}} --out-file {{path/to/output_file}}

babel {{path/to/input_file}} --watch

babel {{path/to/input_directory}}

babel {{path/to/input_directory}} --ignore {{ignored_file1,ignored_file2,...}}

babel {{path/to/input_file}} --minified

babel {{path/to/input_file}} --presets {{preset1,preset2,...}}

babel --help