amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

Fails with React fragment syntax #26

Closed jbox5 closed 6 years ago

jbox5 commented 6 years ago

Plugin seems to fail on files that also contain the new React fragment syntax:

<>
  <FindCustomer />
  {hasSearched && <CustomerTable />}
</>

Error message: Error sorting imports: SyntaxError: Unexpected token

amatiasq commented 6 years ago

Hi, I will try this when I find a moment and post here what I find.

amatiasq commented 6 years ago

@jbox5 A new version of sort-imports@6.0.0 has been released. It will solve this issue.

Basically our dependencies did not support this feature so we have to upgrade.

jbox5 commented 6 years ago

Good news, thanks for the update.