diff --git a/js/repl/ReplOptions.js b/js/repl/ReplOptions.js index d9defe6500..5044d3ff43 100644 --- a/js/repl/ReplOptions.js +++ b/js/repl/ReplOptions.js @@ -34,6 +34,13 @@ const PRESET_ORDER = [ "stage-0", ]; +const PIPELINE_PROPOSALS = { + minimal: "Minimal", + fsharp: "F#", + hack: "Hack", + elixir: "Elixir", +}; + // These presets are deprecated. We only show them if they are enabled, so that // when they are enabled because of an old URL or local storage they can still // be disabled. @@ -451,24 +458,14 @@ class ExpandedContainer extends Component { t => t.value )} > - - - + {Object.keys(PIPELINE_PROPOSALS).map(key => ( + + ))} diff --git a/js/repl/types.js b/js/repl/types.js index 9e0ee00d24..ca687996d3 100644 --- a/js/repl/types.js +++ b/js/repl/types.js @@ -10,7 +10,7 @@ export type BabelPlugin = { export type PresetsOptions = { decoratorsLegacy: boolean, decoratorsBeforeExport: boolean, - pipelineProposal: "smart" | "minimal" | "fsharp", + pipelineProposal: "minimal" | "fsharp" | "hack" | "elixir", reactRuntime: "classic" | "automatic", }; @@ -133,7 +133,7 @@ export type ReplState = { version: any, decoratorsLegacy: boolean, decoratorsBeforeExport: boolean, - pipelineProposal: "minimal" | "smart" | "fsharp", + pipelineProposal: "minimal" | "fsharp" | "hack" | "elixir", reactRuntime: "classic" | "automatic", externalPlugins: ?string, };