Skip to content

Is there a way to make default export from Auto-imports directories? #1576

Answered by aklinker1
nishu-murmu asked this question in Q&A
Discussion options

You must be logged in to vote

Auto imports for default exports are based on file names. So you need to rename the file if you want it to be auto-imported as a different name.

This is just how unimport works, I don't think they provide a way to configure it.

When I do default exports with auto-imports enabled, I generally don't give them a name.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nishu-murmu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants