Doesn't pick up default export when it there is an export of the same name in the same file
Opened this issue · 0 comments
Deleted user commented
A library we work with has this common pattern:
SomeComponent.tsx
:
export function SomeComponent() {};
export default = wrap(SomeComponent, withSomethingElse);
Now when I type:
<SomeCom
and trigger this plugin I get the popup that has the correct file, but only one entry, and when I import I get:
import { SomeComponent } from 'path/to/Component.tsx';
While I usually want:
import SomeComponent from 'path/to/Component.tsx';
I think both options should be in the drop-down in this case.