Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Adds more REPL options and updates bundle.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
trueadm committed Dec 21, 2017
1 parent 9697583 commit 1dbefcb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/prepack.min.js

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions js/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
];

Expand Down

1 comment on commit 1dbefcb

@j-nolan
Copy link
Contributor

@j-nolan j-nolan commented on 1dbefcb Jan 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

the website/ directory of master branch is now the single source of truth for gh-pages branch. More info here. This commit will probably be overridden next time the publication script is run because it wasn't pushed through master.

For now I suggest replicating the changes made to gh-pages -> js/repl.js in master -> website/js/repl.js before the script is run again.

Tomorrow I'll see how we can make this process clearer.

Please sign in to comment.