You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, unimport always injects the imports at the beginning of the file. This sometimes creates confusing circular reference errors, or alters the order of the imports.
To improve this, I implemented injectAtEnd feature (unjs/unimport@6b1ba91) on unimport but not enabled by default yet.
Describe the feature
Currently,
unimport
always injects the imports at the beginning of the file. This sometimes creates confusing circular reference errors, or alters the order of the imports.To improve this, I implemented
injectAtEnd
feature (unjs/unimport@6b1ba91) on unimport but not enabled by default yet.https://github.com/unjs/unimport/blob/1be4b7baba7af772ea863f2bfe529daa2830bc12/src/types.ts#L256-L261
Enabled on https://github.com/antfu/unplugin-auto-import by default and it does solve some circular reference issues. So far, I guess it works for most of the cases, and only a potential bug needs to be investigated: unplugin/unplugin-auto-import#327
Creating this issue to raise this up, and see if you think it something worth to have in the next minor or so.
Additional information
Final checks
The text was updated successfully, but these errors were encountered: