Skip to content

Commit

Permalink
Fix default value for jsxFragmentPragma in website (#737)
Browse files Browse the repository at this point in the history
The default should be `React.Fragment`, not just `Fragment`.
  • Loading branch information
alangpierce authored Aug 16, 2022
1 parent 5354a6d commit 481d673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/src/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type HydratedOptions = Omit<Required<Options>, "filePath" | "sourceMapOpt
export const DEFAULT_OPTIONS: HydratedOptions = {
transforms: ["jsx", "typescript", "imports"],
jsxPragma: "React.createElement",
jsxFragmentPragma: "Fragment",
jsxFragmentPragma: "React.Fragment",
enableLegacyTypeScriptModuleInterop: false,
enableLegacyBabel5ModuleInterop: false,
production: false,
Expand Down
4 changes: 2 additions & 2 deletions website/src/SucraseOptionsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ export default function SucraseOptionsBox({
optionName="jsxPragma"
options={options}
onUpdateOptions={onUpdateOptions}
inputWidth={162}
inputWidth={182}
/>
<StringOption
optionName="jsxFragmentPragma"
options={options}
onUpdateOptions={onUpdateOptions}
inputWidth={100}
inputWidth={120}
/>
</div>
<div className={css(styles.secondaryOptionColumn)}>
Expand Down

0 comments on commit 481d673

Please sign in to comment.