Warning: Reason support is experimental.
We are looking for beta-tester and contributors.
Main Command-Line options
Option name
Description
--version
Display the version of the compiler
-o <file>
Set the output filename to <file>
--source-map
Generate sourcemap
--opt {1,2,3}
Set the compilation profile
(default 1). See Optimization
section below.
--pretty
Pretty print javascript output
--target-env
Build javascript for the requested
environment (default isomorphic).
Isomorphic javascript runs in both the
browser & nodejs. nodejs & browser
options bundle less javascript, but
drop support for APIs incompatible with
the selected runtime.
--no-inline
Disable code inlining
--debug-info
Output debug information
-I dir
Add <dir> to the list of
include directories
--file file[:target]
Register <file> to the pseudo filesystem
and choose the destination <target>. The
<target> can be a directory or a file
(default /static/)
--enable <option>
Enable option <option>
--disable <option>
Disable option <option>
Optimizations
For Debugging: --pretty --no-inline --debug-info + eventually --disable staticeval --disable share
For Production: --opt 3. It minimize the generated javascript by applying
various optimizations until a fix-point is reached