Is there a way to make default export from Auto-imports directories? #1576
Answered
by
aklinker1
nishu-murmu
asked this question in
Q&A
-
If I default export a component from Auto-imports directories and try using it elsewhere autoimport won't work as it is considering |
Beta Was this translation helpful? Give feedback.
Answered by
aklinker1
Apr 14, 2025
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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
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.