mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-08-16 18:10:33 +03:00
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:
parent
9697583835
commit
1dbefcbd83
2
js/prepack.min.js
vendored
2
js/prepack.min.js
vendored
File diff suppressed because one or more lines are too long
19
js/repl.js
19
js/repl.js
@ -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."
|
||||
},
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user