Quramy / tsuquyomi

A Vim plugin for TypeScript

Home Page:http://www.vim.org/scripts/script.php?script_id=5151

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot import default export

pirey opened this issue · comments

So i have a module Flex.tsx

const Flex = (props) => (<div>...</div>)
export default Flex

Now i want to auto-import it by calling :TsuImport under cursor in other module, but nothing seems to happened after i run the command.

But when i use named export like this, the auto import works

export const Flex = (props) => (<div>...</div>)

Is this intentional, or is there any explanation for this?