Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Refmt 3.3.9 removes semi-colon in JSX #95

Open
maarekj opened this issue Dec 23, 2018 · 0 comments
Open

Refmt 3.3.9 removes semi-colon in JSX #95

maarekj opened this issue Dec 23, 2018 · 0 comments

Comments

@maarekj
Copy link

maarekj commented Dec 23, 2018

With refmt (Reason 3.3.9 @ 9914cc69)
The code:

let a =
  <div>
    {
      let name = "joseph";
      <span> {ReasonReact.string(name)} </span>;
    }
  </div>;

is transformed to

let a = <div> {let name = "joseph"
               <span> {ReasonReact.string(name)} </span>} </div>;

The semicolon after "joseph" is remove by refmt, and the code no longer compiles.
It's a regression bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant