forked from google/traceur-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Options for Compiling
johnjbarton edited this page Dec 21, 2013
·
1 revision
Various options control which EcmaScript features are allowed in the source and what kind of output will be generated. The compile options are enumerated in options.js. You can experiment with the options in the [REPL page] (http://traceur-compiler.googlecode.com/git/demo/repl.html) using the Options control in the upper right corner.
The command line supports these options by using --optionName
, as well as a few more options:
Usage: traceur [options] [files]
Options:
-h, --help output usage information
--out <FILE> Compile all input files into a single file
--sourcemap Generate source maps
--longhelp Show all known options
--experimental Turns on all experimental features
Examples:
$ traceur a.js [args]
$ traceur --out compiled.js b.js c.js