Adds more REPL options and updates bundle.

Adds more REPL options, such as: "omitInvariants" and "reactOutput". "reactEnabled" and "omitInvariants" are now on by default. Bundle has been updated to the latest version.
This commit is contained in:
Dominic Gannaway 2017-12-21 13:34:06 +00:00
parent 9697583835
commit 1dbefcbd83
2 changed files with 17 additions and 4 deletions

2
js/prepack.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -40,15 +40,28 @@ var optionsConfig = [
{
type: "choice",
name: "compatibility",
choices: ["browser", "jsc-600-1-4-17", "node-source-maps", "node-cli"],
choices: ["browser", "jsc-600-1-4-17", "node-source-maps", "node-cli", "react-mocks"],
defaultVal: "browser",
description: "The target environment for Prepack"
},
{
type: "boolean",
name: "omitInvariants",
defaultVal: true,
description: "Do not add invariant conditionals that throw on possible runtime errors."
},
{
type: "boolean",
name: "reactEnabled",
defaultVal: false,
description: "Enables experimental support for React features, such as JSX syntax."
defaultVal: true,
description: "Enables support for React features, such as JSX syntax."
},
{
type: "choice",
name: "reactOutput",
choices: ["jsx", "create-element"],
defaultVal: "jsx",
description: "Specifies the serialization output of JSX nodes when React mode is enabled."
},
];